diff --git a/test/controllers/lessons_controller_test.rb b/test/controllers/lessons_controller_test.rb index c1f59ee..231def1 100644 --- a/test/controllers/lessons_controller_test.rb +++ b/test/controllers/lessons_controller_test.rb @@ -1,7 +1,10 @@ require "test_helper" class LessonsControllerTest < ActionDispatch::IntegrationTest + include Devise::Test::IntegrationHelpers + setup do + sign_in users(:default) @lesson = lessons(:layla) end diff --git a/test/controllers/sections_controller_test.rb b/test/controllers/sections_controller_test.rb index f530d7d..62852ad 100644 --- a/test/controllers/sections_controller_test.rb +++ b/test/controllers/sections_controller_test.rb @@ -1,7 +1,10 @@ require "test_helper" class SectionsControllerTest < ActionDispatch::IntegrationTest + include Devise::Test::IntegrationHelpers + setup do + sign_in users(:default) @section = sections(:one) @lesson = lessons(:layla) end