Sha256: a8d224fc775ce196f0b7f500ffc8af14c55a648c318914af049f5aca95fcafec

Contents?: true

Size: 485 Bytes

Versions: 30

Compression:

Stored size: 485 Bytes

Contents

package_require('ree_errors/payment_required_error')

RSpec.describe ReeErrors::PaymentRequiredError do
  link :payment_required_error, from: :ree_errors

  it {
    klass = payment_required_error(:code)
    error = klass.new('message')

    expect(klass).to be_a(Class)
    expect(error).to be_a(ReeErrors::Error)
    expect(error.message).to eq('message')
    expect(error.code).to eq(:code)
    expect(error.type).to eq(:payment_required)
    expect(error.locale).to eq(nil)
  }
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ree_lib-1.0.124 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.123 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.122 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.121 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.120 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.119 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.118 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.117 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.116 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.115 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.114 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.113 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.112 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.111 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.110 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.109 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.108 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.107 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.106 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.105 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb