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.104 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.103 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.102 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.101 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.100 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.99 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.98 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.97 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.96 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.95 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb