Skip to content

Commit 2b2134d

Browse files
committed
Update spec
1 parent 7bf9130 commit 2b2134d

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

spec/integration/orders_spec.rb

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
expect(create_order_response.success).to eq true
4545
expect(order.id).not_to be_nil
4646
expect(order.mass_g).to eq(order_mass_g)
47-
expect(order.price_cents_usd.to_i).to be_between(expected_price - 2, expected_price + 2)
48-
expect(order.patch_fee_cents_usd).not_to be_empty
47+
expect(order.price_cents_usd).to be_between(expected_price - 2, expected_price + 2)
48+
expect(order.patch_fee_cents_usd).to be_kind_of(Integer)
4949
expect(order.registry_url).not_to be_empty
5050
end
5151

@@ -55,7 +55,7 @@
5555
)
5656

5757
project_id = retrieve_project_response.data.id
58-
total_price_cents_usd = 5_00
58+
total_price_cents_usd = 50_00
5959

6060
create_order_response = Patch::Order.create_order(
6161
total_price_cents_usd: total_price_cents_usd,
@@ -67,13 +67,7 @@
6767
order = create_order_response.data
6868

6969
expect(order.id).not_to be_nil
70-
expect(order.mass_g).to be > 450_000
71-
expect(order.mass_g).to be < 460_000
72-
expect(order.price_cents_usd).not_to be_empty
73-
expect(order.patch_fee_cents_usd).not_to be_empty
74-
expect(
75-
order.price_cents_usd.to_i + order.patch_fee_cents_usd.to_i
76-
).to eq(total_price_cents_usd)
70+
expect(order.price_cents_usd + order.patch_fee_cents_usd).to eq total_price_cents_usd
7771
expect(order.registry_url).not_to be_empty
7872
end
7973

0 commit comments

Comments
 (0)