1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-23 15:19:38 +02:00

Add PagesControllerTest with authentication (#288)

* Add PagesControllerTest with authentication

* Rubocop fixes

* Move sign_in to setup block

* Remove instance variable
This commit is contained in:
Dwight Watson 2024-02-05 10:39:38 +11:00 committed by GitHub
parent d61a22b070
commit fb7411e163
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,12 @@
require "test_helper"
class PagesControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in users(:bob)
end
test "dashboard" do
get root_path
assert_response :ok
end
end