spec/moip2/client_spec.rb in moip2-0.1.1 vs spec/moip2/client_spec.rb in moip2-0.1.3
- old
+ new
@@ -21,11 +21,11 @@
let(:client) do
described_class.new :sandbox, auth
end
let(:client) { described_class.new :sandbox, oauth }
- it { expect(client.uri).to eq "https://test.moip.com.br" }
+ it { expect(client.uri).to eq ENV['sandbox_url'] }
it { expect(client.env).to eq :sandbox }
it { expect(client.opts[:headers]["Authorization"]).to eq "OAuth d63tz2xwyu0ewrembove4j5cbv2otpd" }
end
@@ -113,10 +113,10 @@
let(:client) do
described_class.new :sandbox, auth
end
- it { expect(client.uri).to eq "https://test.moip.com.br" }
+ it { expect(client.uri).to eq ENV['sandbox_url'] }
it { expect(client.env).to eq :sandbox }
it { expect(client.opts[:headers]["Authorization"]).to eq "Basic VE9LRU46U0VDUkVU" }
end
describe "initialize on production" do