Skip to content

Commit 66da3c5

Browse files
committed
patch fee integration test
1 parent 39bef40 commit 66da3c5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/integration/orders_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@
2929
retrieve_projects_response = Patch::Project.retrieve_projects(page: 1)
3030
project_id = retrieve_projects_response.data.first.id
3131

32-
create_order_response = Patch::Order.create_order(mass_g: 100, project_id: project_id)
32+
create_order_response = Patch::Order.create_order(mass_g: 100_000, project_id: project_id)
3333

3434
expect(create_order_response.success).to eq true
3535
expect(create_order_response.data.id).not_to be_nil
36-
expect(create_order_response.data.mass_g).to eq(100)
36+
expect(create_order_response.data.mass_g).to eq(100_000)
37+
expect(create_order_response.data.price_cents_usd).to eq(1553)
38+
expect(create_order_response.data.patch_fee_cents_usd).to eq(50)
3739
end
3840

3941
it 'supports create with metadata' do

0 commit comments

Comments
 (0)