diff --git a/spec/models/organisation_spec.rb b/spec/models/organisation_spec.rb index fd5323772..17b8ec200 100644 --- a/spec/models/organisation_spec.rb +++ b/spec/models/organisation_spec.rb @@ -4,7 +4,7 @@ RSpec.describe Organisation, type: :model do describe "#new" do let(:user) { FactoryBot.create(:user) } let!(:organisation) { user.organisation } - let!(:scheme) { FactoryBot.create(:scheme, organisation: organisation) } + let!(:scheme) { FactoryBot.create(:scheme, organisation:) } it "has expected fields" do expect(organisation.attribute_names).to include("name", "phone", "provider_type")