Sha256: 6eadb29b2b0ea30718935879987eb26f7e65209c5fb1e7bfd88f0fc6c4d25c73

Contents?: true

Size: 329 Bytes

Versions: 9

Compression:

Stored size: 329 Bytes

Contents

require 'rails_helper'

module Logistics
	module Core
	  RSpec.describe Currency, type: :model do
	    it 'has a valid factory' do
	    	expect(create(:currency)).to be_valid
			end

      it 'can access rates' do
        c = create(:currency, :with_rates)
        expect(c.currency_rates.count).to eq 2
      end
	  end
	end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 spec/models/logistics/core/currency_spec.rb
logistics_core-21.11.1 spec/models/logistics/core/currency_spec.rb
logistics_core-21.08.1 spec/models/logistics/core/currency_spec.rb
logistics_core-21.03.1 spec/models/logistics/core/currency_spec.rb
logistics_core-20.10.3 spec/models/logistics/core/currency_spec.rb
logistics_core-20.10.2 spec/models/logistics/core/currency_spec.rb
logistics_core-20.10.1 spec/models/logistics/core/currency_spec.rb
logistics_core-20.9.1 spec/models/logistics/core/currency_spec.rb
logistics_core-20.8.1 spec/models/logistics/core/currency_spec.rb