Sha256: df206835e965a35b6d890562fab52bf258945383e188f4387bc77cb6ca33937d
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
shared_examples_for 'a Plutus::Amount subtype' do |elements| let(:amount) { FactoryGirl.build(elements[:kind]) } subject { amount } it { should be_valid } it "should require an amount" do amount.amount = nil amount.should_not be_valid end it "should require a entry" do amount.entry = nil amount.should_not be_valid end it "should require an account" do amount.account = nil amount.should_not be_valid end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
plutus-0.10.1 | spec/support/amount_shared_examples.rb |
plutus-0.10.0 | spec/support/amount_shared_examples.rb |
plutus-0.9.0 | spec/support/amount_shared_examples.rb |