Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix specs

- Fix typo in spec for Paypal::NVP::Request
- Add specs for :brand and :locale parameters
  of SetExpressCheckout request
  • Loading branch information...
commit da3cd92595ba33a1110303a1435c47aa9583192f 1 parent 62b127e
@soulim soulim authored
View
4 spec/paypal/express/request_spec.rb
@@ -129,7 +129,9 @@ def post_with_logging(method, params)
{
:solution_type => :SOLUTIONTYPE,
:landing_page => :LANDINGPAGE,
- :email => :EMAIL
+ :email => :EMAIL,
+ :brand => :BRANDNAME,
+ :locale => :LOCALECODE
}.each do |option_key, param_key|
it "should support #{option_key} option" do
expect do
View
2  spec/paypal/nvp/request_spec.rb
@@ -107,7 +107,7 @@
)
end
- it 'should raise Paypal::Exception::APIError' do
+ it 'should raise Paypal::Exception::HttpError' do
expect do
instance.request :SetExpressCheckout
end.to raise_error(Paypal::Exception::HttpError)
Please sign in to comment.
Something went wrong with that request. Please try again.