spec/moip2/customer_api_spec.rb in moip2-0.1.1 vs spec/moip2/customer_api_spec.rb in moip2-0.1.3
- old
+ new
@@ -22,11 +22,11 @@
it { expect(customer.tax_document).to_not be_nil }
it { expect(customer.tax_document.type).to eq "CPF" }
it { expect(customer.shipping_address).to_not be_nil }
it { expect(customer.shipping_address.zip_code).to eq "01234000" }
it { expect(customer._links).to_not be_nil }
- it { expect(customer._links.self.href).to eq "https://test.moip.com.br/v2/customers/CUS-B6LE6HLFFXKF" }
+ it { expect(customer._links.self.href).to eq "#{ENV['sandbox_url']}/v2/customers/CUS-B6LE6HLFFXKF" }
end
describe "#create with funding instrument" do
@@ -94,11 +94,11 @@
it { expect(created_customer_with_funding_instrument.tax_document).to_not be_nil }
it { expect(created_customer_with_funding_instrument.tax_document.type).to eq "CPF" }
it { expect(created_customer_with_funding_instrument.shipping_address).to_not be_nil }
it { expect(created_customer_with_funding_instrument.shipping_address.zip_code).to eq "01234000" }
it { expect(created_customer_with_funding_instrument._links).to_not be_nil }
- it { expect(created_customer_with_funding_instrument._links.self.href).to eq "https://test.moip.com.br/v2/customers/CUS-E5CO735TBXTI" }
+ it { expect(created_customer_with_funding_instrument._links.self.href).to eq "#{ENV['sandbox_url']}/v2/customers/CUS-E5CO735TBXTI" }
end
describe "#create without funding instrument" do
@@ -143,10 +143,10 @@
it { expect(created_customer.tax_document).to_not be_nil }
it { expect(created_customer.tax_document.type).to eq "CPF" }
it { expect(created_customer.shipping_address).to_not be_nil }
it { expect(created_customer.shipping_address.zip_code).to eq "01234000" }
it { expect(created_customer._links).to_not be_nil }
- it { expect(created_customer._links.self.href).to eq "https://test.moip.com.br/v2/customers/CUS-4GESZSOAH7HX" }
+ it { expect(created_customer._links.self.href).to eq "#{ENV['sandbox_url']}/v2/customers/CUS-4GESZSOAH7HX" }
end
end