Sha256: b252f5e37341aac9d2cb8e7f008d31dca0aebd808951491adb4055dcce49a27b

Contents?: true

Size: 463 Bytes

Versions: 7

Compression:

Stored size: 463 Bytes

Contents

require 'spec_helper.rb'

describe Paypal::Exception::HttpError do
  subject { Paypal::Exception::HttpError.new(400, 'BadRequest', 'You are bad man!') }

  describe '#code' do
    subject { super().code }
    it { is_expected.to eq(400) }
  end

  describe '#message' do
    subject { super().message }
    it { is_expected.to eq('BadRequest') }
  end

  describe '#body' do
    subject { super().body }
    it { is_expected.to eq('You are bad man!') }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ianfleeton-paypal-express-1.0.0 spec/paypal/exception/http_error_spec.rb
ianfleeton-paypal-express-0.8.7 spec/paypal/exception/http_error_spec.rb
ianfleeton-paypal-express-0.8.6 spec/paypal/exception/http_error_spec.rb
ianfleeton-paypal-express-0.8.5 spec/paypal/exception/http_error_spec.rb
ianfleeton-paypal-express-0.8.4 spec/paypal/exception/http_error_spec.rb
ianfleeton-paypal-express-0.8.3 spec/paypal/exception/http_error_spec.rb
ianfleeton-paypal-express-0.8.2 spec/paypal/exception/http_error_spec.rb