Sha256: 7cc5f20ac1512e327be508d05692e991fc203b14bf037e755e3a7d7606cc224d

Contents?: true

Size: 433 Bytes

Versions: 94

Compression:

Stored size: 433 Bytes

Contents

package_require('ree_errors/payment_required_error')

RSpec.describe ReeErrors::PaymentRequiredError do
  it {
    klass = described_class.build(: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

94 entries across 94 versions & 1 rubygems

Version Path
ree_lib-1.0.94 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.93 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.92 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.91 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.90 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.89 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.88 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.87 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.86 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.85 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.84 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.83 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.82 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.81 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.80 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.79 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.78 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.77 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.76 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb
ree_lib-1.0.75 lib/ree_lib/packages/ree_errors/spec/ree_errors/payment_required_error_spec.rb