Sha256: d7cdafa85d49192066d663859ace2618e413fe47406a5ce483ed0f7dc9536df0

Contents?: true

Size: 318 Bytes

Versions: 22

Compression:

Stored size: 318 Bytes

Contents

require 'spec_helper'

module Opay
  describe Payment do

    describe 'associations' do
      it { should belong_to(:payable) }
    end

    specify 'validations' do
      should validate_presence_of(:payable)
      should validate_presence_of(:provider)
      should validate_presence_of(:amount)
    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
opay-1.3.2 spec/models/opay/payment_spec.rb
opay-1.3.1 spec/models/opay/payment_spec.rb
opay-1.3.0 spec/models/opay/payment_spec.rb
opay-1.2.8 spec/models/opay/payment_spec.rb
opay-1.2.7 spec/models/opay/payment_spec.rb
opay-1.2.6 spec/models/opay/payment_spec.rb
opay-1.2.5 spec/models/opay/payment_spec.rb
opay-1.2.4 spec/models/opay/payment_spec.rb
opay-1.2.3 spec/models/opay/payment_spec.rb
opay-1.2.2 spec/models/opay/payment_spec.rb
opay-1.2.1 spec/models/opay/payment_spec.rb
opay-1.2.0 spec/models/opay/payment_spec.rb
opay-1.1.6 spec/models/opay/payment_spec.rb
opay-1.1.5 spec/models/opay/payment_spec.rb
opay-1.1.4 spec/models/opay/payment_spec.rb
opay-1.1.3 spec/models/opay/payment_spec.rb
opay-1.1.2 spec/models/opay/payment_spec.rb
opay-1.1.1 spec/models/opay/payment_spec.rb
opay-1.1.0 spec/models/opay/payment_spec.rb
opay-1.0.9 spec/models/opay/payment_spec.rb