Skip to content

Commit

Permalink
Fix create_default_admin_set_job_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
laritakr committed Dec 18, 2023
1 parent 02781ee commit da06c93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/jobs/create_default_admin_set_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

describe '#perform' do
it 'creates a new admin set for an account' do
expect(AdminSet).to receive(:find_or_create_default_admin_set_id).once
described_class.perform_now(account)
expect{ described_class.perform_now(account) }.to change(AdminSet, :count).by(1)
end
end
end

0 comments on commit da06c93

Please sign in to comment.