Sha256: ba0bfee9f36471ad1b0815a073520a1540bf036b1bcc9e7809537180a68a714e

Contents?: true

Size: 300 Bytes

Versions: 4

Compression:

Stored size: 300 Bytes

Contents

require 'spec_helper'

module Borutus
  describe Amount do

    describe "attributes" do
      it { is_expected.to delegate_method(:name).to(:account).with_prefix }
    end

    subject { FactoryBot.build(:amount) }
    it { is_expected.not_to be_valid }  # construct a child class instead
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
borutus-1.0.0 spec/models/amount_spec.rb
borutus-0.2.4 spec/models/amount_spec.rb
borutus-0.2.3 spec/models/amount_spec.rb
borutus-0.2.2 spec/models/amount_spec.rb