Sha256: 579655de17587edb5f55757260221d981f172c56e89580c9e7912947460b6e09

Contents?: true

Size: 364 Bytes

Versions: 6

Compression:

Stored size: 364 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)
      should validate_presence_of(:session_id)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opay-1.0.6 spec/models/opay/payment_spec.rb
opay-1.0.5 spec/models/opay/payment_spec.rb
opay-1.0.4 spec/models/opay/payment_spec.rb
opay-1.0.3 spec/models/opay/payment_spec.rb
opay-1.0.1 spec/models/opay/payment_spec.rb
opay-1.0.0 spec/models/opay/payment_spec.rb