Skip to content

Commit 2c1ff13

Browse files
committed
1069: Fix test failure
1 parent c03908e commit 2c1ff13

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

spec/services/school_verification_service_spec.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
let(:school) { build(:school, creator_id: school_creator.id, website:) }
88
let(:school_creator) { create(:user) }
99
let(:service) { described_class.new(school) }
10+
let(:token) { 'token' }
11+
12+
before do
13+
allow(ProfileApiClient).to receive(:create_school)
14+
end
1015

1116
describe '#verify' do
1217
describe 'when immediate onboarding is enabled' do
@@ -49,18 +54,12 @@
4954

5055
# TODO: Remove these examples once the feature flag is retired
5156
describe 'when immediate onboarding is disabled' do
52-
let(:token) { 'token' }
53-
5457
around do |example|
5558
ClimateControl.modify(ENABLE_IMMEDIATE_SCHOOL_ONBOARDING: nil) do
5659
example.run
5760
end
5861
end
5962

60-
before do
61-
allow(ProfileApiClient).to receive(:create_school)
62-
end
63-
6463
describe 'when school can be saved' do
6564
it 'saves the school' do
6665
service.verify(token:)

0 commit comments

Comments
 (0)