Sha256: 2dcd28183ead3801345cbd99780fea9133755975ff78c736b4059dd71c65b4b0

Contents?: true

Size: 212 Bytes

Versions: 29

Compression:

Stored size: 212 Bytes

Contents

Factory.define :state do |f|
  f.name 'ALABAMA'
  f.abbr 'AL'
  f.country do |country|
    if usa = Country.find_by_numcode(840)
      country = usa
    else
      country.association(:country)
    end
  end
end

Version data entries

29 entries across 29 versions & 6 rubygems

Version Path
spree_core-0.70.7 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.70.6 lib/spree_core/testing_support/factories/state_factory.rb
apispree_core-0.0.0 lib/spree_core/testing_support/factories/state_factory.rb
My-Commerce_core-1.1.0 lib/spree_core/testing_support/factories/state_factory.rb
My-Commerce_core-1.0.0 lib/spree_core/testing_support/factories/state_factory.rb
MyCommerceapi-1.0.0 core/lib/spree_core/testing_support/factories/state_factory.rb
MyCommerce-0.0.3 core/lib/spree_core/testing_support/factories/state_factory.rb
rfcommerce_core-0.0.3 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.60.6 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.70.5 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.70.4 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.60.5 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.70.3 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.70.2 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.50.4 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.60.4 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.50.3 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.60.3 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.70.1 lib/spree_core/testing_support/factories/state_factory.rb
spree_core-0.70.0 lib/spree_core/testing_support/factories/state_factory.rb