Skip to content

Commit

Permalink
feat: better definition of integration_error_details factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Velentsevich authored and Anna Velentsevich committed Jul 22, 2024
1 parent 39e0b71 commit 06f2318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/factories/integration_error_details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

FactoryBot.define do
factory :integration_error_detail do
integration
association :owner, factory: %i[invoice].sample
association :error_producer, factory: :anrok_integration
end
end
2 changes: 1 addition & 1 deletion spec/models/integration_error_detail_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
require 'rails_helper'

RSpec.describe IntegrationErrorDetail, type: :model do
it { is_expected.to belong_to(:integration) }
it { is_expected.to belong_to(:error_producer) }
it { is_expected.to belong_to(:owner) }
end

0 comments on commit 06f2318

Please sign in to comment.