spec/models/tender_spec.rb in square_connect-2.4.0.175 vs spec/models/tender_spec.rb in square_connect-2.5.0.180
- old
+ new
@@ -97,7 +97,21 @@
it 'should work' do
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
end
end
-end
+ describe 'test attribute "additional_recipients"' do
+ it 'should work' do
+ recipient = {
+ location_id: "location",
+ description: "description",
+ amount_money: {
+ amount: 1,
+ currency: "USD"
+ }
+ }
+ @instance.additional_recipients = [recipient]
+ expect(@instance.additional_recipients()).to include(recipient)
+ end
+ end
+end