Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Jul 2, 2024
1 parent 399771f commit da177a8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/controllers/series_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,13 @@ def assert_show_and_overview(authorized, token: nil)
assert_show_and_overview true, token: @series.access_token
end

test 'student that is not member of course should not see hidden series with token' do
sign_in @student
@series.update(visibility: :hidden)

assert_show_and_overview false, token: @series.access_token
end

test 'student should not see hidden series with wrong token' do
sign_in @student
@series.course.subscribed_members << @student
Expand Down

0 comments on commit da177a8

Please sign in to comment.