Skip to content

Commit a51f13d

Browse files
committed
Move create class student to before block
1 parent f277e95 commit a51f13d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

spec/features/lesson/listing_lessons_spec.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
before do
77
authenticated_in_hydra_as(owner)
88
stub_user_info_api_for(teacher)
9+
create(:class_student, school_class:, student_id: student.id)
910
end
1011

1112
let(:headers) { { Authorization: UserProfileMock::TOKEN } }
@@ -199,10 +200,6 @@
199200
let!(:lesson) { create(:lesson, school_class:, name: 'Test Lesson', visibility: 'students', user_id: teacher.id) }
200201
let(:teacher) { create(:teacher, school:) }
201202

202-
let!(:class_student) do
203-
create(:class_student, school_class:, student_id: student.id)
204-
end
205-
206203
let(:student_project) do
207204
create(
208205
:project,

0 commit comments

Comments
 (0)