Sha256: 35a20a10d32f80ef641d88a5ea9a67bf8a07687a21866df5ee321fe0e1f9c9df

Contents?: true

Size: 597 Bytes

Versions: 2

Compression:

Stored size: 597 Bytes

Contents

require 'spec_helper'

module Plutus
  describe CreditAmount do

    it "should be invalid without an amount" do
      credit_amount = FactoryGirl.build(:credit_amount, :amount => nil)
      credit_amount.should_not be_valid
    end

    it "should not be valid without a transaction" do
      credit_amount = FactoryGirl.build(:credit_amount, :transaction => nil)
      credit_amount.should_not be_valid
    end

    it "should not be valid without an account" do
      credit_amount = FactoryGirl.build(:credit_amount, :account => nil)
      credit_amount.should_not be_valid
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plutus-0.7.2 spec/models/credit_amount_spec.rb
plutus-0.7.0 spec/models/credit_amount_spec.rb