class ErrorsTest < ActionDispatch::IntegrationTest
setup do
- Capybara.current_driver = Capybara.javascript_driver
+ need_javascript
end
BAD_UUID = "ffffffffffffffffffffffffffffffff+0"
end
end
+ test "404 page checks if user not logged in and makes suggestion" do
+ visit "/collections/#{BAD_UUID}"
+ assert_text 'you are not logged in'
+ end
+
end