Skip to content

Commit

Permalink
Fix asserts with :ok
Browse files Browse the repository at this point in the history
  • Loading branch information
thvmulle committed Oct 24, 2024
1 parent 8288aef commit beede98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/controllers/courses_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ def with_users_signed_in(users)
create :question, question_state: :in_progress, submission: submission
get questions_course_path(@course)

assert :ok, "#{who} should be able to view questions"
assert_response :ok, "#{who} should be able to view questions"
end
end

Expand All @@ -883,7 +883,7 @@ def with_users_signed_in(users)
with_users_signed_in @not_admins do |who|
get questions_course_path(@course)

assert :ok, "#{who} should not be able to view questions"
assert_response :redirect, "#{who} should not be able to view questions"
end
end

Expand Down

0 comments on commit beede98

Please sign in to comment.