Sha256: be2b85ab7b8b1324b9149ac8e5c846ff15d90cea77209d82f8f9d590fb537f92
Contents?: true
Size: 503 Bytes
Versions: 6
Compression:
Stored size: 503 Bytes
Contents
require 'spec_helper' describe Spree::Country, type: :model do describe '.default' do let(:america) { create :country } let(:canada) { create :country, name: 'Canada' } it 'will return the country from the config' do Spree::Config[:default_country_id] = canada.id expect(described_class.default.id).to eql canada.id end it 'will return the US if config is not set' do america.touch expect(described_class.default.id).to eql america.id end end end
Version data entries
6 entries across 6 versions & 1 rubygems