Skip to content

Commit 35b5567

Browse files
committed
test: drop duplicate regenerate_join_code 200 example
The before block already authenticates as :teacher, so the previous two examples exercised the same path. Keep the descriptive one.
1 parent 3576349 commit 35b5567

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

spec/features/school_class/regenerating_join_code_spec.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@
1212
let(:teacher) { create(:teacher, school:, name: 'School Teacher') }
1313
let!(:school_class) { create(:school_class, name: 'Test School Class', school:, teacher_ids: [teacher.id]) }
1414

15-
it 'responds 200 OK' do
16-
post("/api/schools/#{school.id}/classes/#{school_class.id}/regenerate_join_code", headers:)
17-
expect(response).to have_http_status(:ok)
18-
end
19-
2015
it 'responds 200 OK when the user is the school-teacher for the class' do
21-
authenticated_in_hydra_as(teacher)
22-
2316
post("/api/schools/#{school.id}/classes/#{school_class.id}/regenerate_join_code", headers:)
2417
expect(response).to have_http_status(:ok)
2518
end

0 commit comments

Comments
 (0)