Skip to content

Commit

Permalink
Update controller tests
Browse files Browse the repository at this point in the history
- Include Devise helpers
- Sign in to the default user
  • Loading branch information
mauriciofierrom committed Dec 2, 2023
1 parent 581d5f9 commit ee864e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/controllers/lessons_controller_test.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 3 additions & 0 deletions test/controllers/sections_controller_test.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit ee864e8

Please sign in to comment.