Skip to content

Commit

Permalink
update specs
Browse files Browse the repository at this point in the history
  • Loading branch information
SerKnight committed Mar 5, 2021
1 parent f8cdedd commit 28897f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/helper_methods_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@

describe '#attributes' do
it 'can serialize invoice attributes into a snake_case hash' do
expect(invoice.attributes).to eq({currency_code: "USD", has_attachments: false, has_errors: false, invoice_number: "abc-123", total_discount: 100, type: "ACCPAY"})
expect(invoice.to_attributes).to eq({currency_code: "USD", has_attachments: false, has_errors: false, invoice_number: "abc-123", total_discount: 100, type: "ACCPAY"})
end

it 'can serialize contact attributes into a snake_case hash' do
expect(contact.attributes).to eq({account_number: "abc-123", contact_status: "ACTIVE", email_address: "[email protected]", first_name: 'Contact', has_attachments: false, has_validation_errors: false, last_name: "Name", name: "Contact Name"})
expect(contact.to_attributes).to eq({account_number: "abc-123", contact_status: "ACTIVE", email_address: "[email protected]", first_name: 'Contact', has_attachments: false, has_validation_errors: false, last_name: "Name", name: "Contact Name"})
end
end
end
Expand Down

0 comments on commit 28897f4

Please sign in to comment.