spec/moip2/customer_api_spec.rb in moip2-1.0.0 vs spec/moip2/customer_api_spec.rb in moip2-1.1.0

- old
+ new

@@ -23,11 +23,11 @@ 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 "#{ENV['sandbox_url']}/v2/customers/CUS-B6LE6HLFFXKF" + ).to eq "https://sandbox.moip.com.br/v2/customers/CUS-B6LE6HLFFXKF" } end describe "#create with funding instrument" do let(:customer_with_funding_instrument) do @@ -108,11 +108,11 @@ } it { expect(created_customer_with_funding_instrument._links).to_not be_nil } it { expect( created_customer_with_funding_instrument._links.self.href, - ).to eq "#{ENV['sandbox_url']}/v2/customers/CUS-E5CO735TBXTI" + ).to eq "https://sandbox.moip.com.br/v2/customers/CUS-E5CO735TBXTI" } end describe "#create without funding instrument" do let(:customer) do @@ -159,10 +159,10 @@ 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 "#{ENV['sandbox_url']}/v2/customers/CUS-4GESZSOAH7HX" + ).to eq "https://sandbox.moip.com.br/v2/customers/CUS-4GESZSOAH7HX" } end describe "#create credit card to customer" do let(:credit_card) do