Sha256: 3000e21011daaa4be1ca8dbea3e0b4628bf568a8ca2ea0706f5edddc649396d1
Contents?: true
Size: 478 Bytes
Versions: 3
Compression:
Stored size: 478 Bytes
Contents
shared_examples_for 'a Borutus::Amount subtype' do |elements| let(:amount) { FactoryGirl.build(elements[:kind]) } subject { amount } it { is_expected.to be_valid } it "should require an amount" do amount.amount = nil expect(amount).not_to be_valid end it "should require a entry" do amount.entry = nil expect(amount).not_to be_valid end it "should require an account" do amount.account = nil expect(amount).not_to be_valid end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
borutus-0.2.1 | spec/support/amount_shared_examples.rb |
borutus-0.2.0 | spec/support/amount_shared_examples.rb |
borutus-0.1.0 | spec/support/amount_shared_examples.rb |