Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/tasks/test_seeds.rake
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ namespace :test_seeds do
teacher_id = ENV.fetch('SEEDING_TEACHER_ID', TEST_USERS[:john_doe])

school = create_school(creator_id, TEST_SCHOOL)
Flipper.enable_actor :cat_mode, school
verify_school(school)
assign_a_teacher(teacher_id, school)

Expand Down
5 changes: 5 additions & 0 deletions spec/lib/test_seeds_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
expect(School.find_by(creator_id:).verified_at).to be_truthy
end

it 'enables scratch for the school' do
school = School.find_by(creator_id:)
expect(Flipper.enabled?(:cat_mode, school)).to be(true)
end

it 'creates lessons with projects' do
school = School.find_by(creator_id:)
expect(SchoolClass.where(school_id: school.id)).to exist
Expand Down
Loading