spec/unit/braintree/configuration_spec.rb in braintree-2.33.1 vs spec/unit/braintree/configuration_spec.rb in braintree-2.34.0
- old
+ new
@@ -66,17 +66,10 @@
Braintree::Configuration.instantiate.base_merchant_url.should == "https://api.braintreegateway.com:443/merchants/integration_merchant_id"
end
end
describe "ca_file" do
- it "qa" do
- Braintree::Configuration.environment = :qa
- ca_file = Braintree::Configuration.instantiate.ca_file
- ca_file.should match(/api_braintreegateway_com\.ca\.crt$/)
- File.exists?(ca_file).should == true
- end
-
it "sandbox" do
Braintree::Configuration.environment = :sandbox
ca_file = Braintree::Configuration.instantiate.ca_file
ca_file.should match(/api_braintreegateway_com\.ca\.crt$/)
File.exists?(ca_file).should == true
@@ -223,10 +216,10 @@
Braintree::Configuration.instantiate.server.should == "api.sandbox.braintreegateway.com"
end
it "is qa.braintreegateway.com for qa" do
Braintree::Configuration.environment = :qa
- Braintree::Configuration.instantiate.server.should == "qa.braintreegateway.com"
+ Braintree::Configuration.instantiate.server.should == "gateway.qa.braintreepayments.com"
end
it "can by changed by configuring the production endpoint" do
Braintree::Configuration.environment = :production
Braintree::Configuration.endpoint = "custom-endpoint"