spec/moip2/order_api_spec.rb in moip2-0.1.1 vs spec/moip2/order_api_spec.rb in moip2-0.1.3
- old
+ new
@@ -74,10 +74,10 @@
expect(created_order.customer.id).to eq("CUS-B6LE6HLFFXKF")
expect(created_order.customer.shipping_address).to_not be_nil
expect(created_order.customer._links).to_not be_nil
- expect(created_order.customer._links.self.href).to eq "https://test.moip.com.br/v2/customers/CUS-B6LE6HLFFXKF"
+ expect(created_order.customer._links.self.href).to eq "#{ENV['sandbox_url']}/v2/customers/CUS-B6LE6HLFFXKF"
end
it "returns an Order object" do
expect(created_order).to be_a(Moip2::Resource::Order)
end