Sha256: 8784c52678a37dfb3ba4855c07a6d89982e5f89c2baa847171a5b78f5d69b46e
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 Bytes
Contents
require 'spec_helper' module Plutus describe DebitAmount do it "should be invalid without an amount" do debit_amount = FactoryGirl.build(:debit_amount, :amount => nil) debit_amount.should_not be_valid end it "should not be valid without a transaction" do debit_amount = FactoryGirl.build(:debit_amount, :transaction => nil) debit_amount.should_not be_valid end it "should not be valid without an account" do debit_amount = FactoryGirl.build(:debit_amount, :account => nil) debit_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/debit_amount_spec.rb |
plutus-0.7.0 | spec/models/debit_amount_spec.rb |