mirror of
https://github.com/we-promise/sure.git
synced 2026-04-21 13:04:18 +00: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:
12
test/controllers/pages_controller_test.rb
Normal file
12
test/controllers/pages_controller_test.rb
Normal 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
|
||||
Reference in New Issue
Block a user