Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
inulty-dfe committed Dec 16, 2024
1 parent 1ebd77c commit 448a4e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/models/provider_partnership_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
subject(:partnership) { build(:provider_partnership, description: '') }

it 'has correct error message' do
expect(subject.errors.messages[:description]).to include('Enter details about the accredited provider')
expect(subject.errors.messages[:description]).to include('Enter details about the accredited partnership')
end
end

Expand Down
4 changes: 2 additions & 2 deletions spec/models/provider_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1001,15 +1001,15 @@
let(:accredited_provider) { create(:accredited_provider) }

it 'can create an accredited partnership' do
partnership = training_provider.accredited_partnerships.create(accredited_provider:)
partnership = training_provider.accredited_partnerships.create(accredited_provider:, description: 'Great partnership!')
expect(training_provider.accredited_partnerships).to include(partnership)
expect(training_provider.accredited_partners).to include(accredited_provider)
expect(partnership).to be_valid
expect(partnership).to be_persisted
end

it 'can create an training partnership' do
partnership = accredited_provider.training_partnerships.create(training_provider:)
partnership = accredited_provider.training_partnerships.create(training_provider:, description: 'Great partnership!')
expect(accredited_provider.training_partnerships).to include(partnership)
expect(accredited_provider.training_partners).to include(training_provider)
expect(partnership).to be_valid
Expand Down

0 comments on commit 448a4e5

Please sign in to comment.