Sha256: 13b9b13f7912f9a6a1d582656f716c4be883e3617b1ec9a9ac74966ba2d5279b

Contents?: true

Size: 239 Bytes

Versions: 12

Compression:

Stored size: 239 Bytes

Contents

Spree::Zone.class_eval do
  def self.global
    find_by_name("GlobalZone") || Factory(:global_zone)
  end
end

require 'factory_girl'

Dir["#{File.dirname(__FILE__)}/factories/**"].each do |f|
  fp =  File.expand_path(f)
  require fp
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_core-1.0.7 lib/spree/core/testing_support/factories.rb
spree_core-1.0.6 lib/spree/core/testing_support/factories.rb
spree_core-1.0.4 lib/spree/core/testing_support/factories.rb
spree_core-1.1.0.rc1 lib/spree/core/testing_support/factories.rb
spree_core-1.0.3 lib/spree/core/testing_support/factories.rb
spree_core-1.0.2 lib/spree/core/testing_support/factories.rb
spree_core-1.0.1 lib/spree/core/testing_support/factories.rb
spree_core-1.0.0 lib/spree/core/testing_support/factories.rb
spree_core-1.0.0.rc4 lib/spree/core/testing_support/factories.rb
spree_core-1.0.0.rc3 lib/spree/core/testing_support/factories.rb
spree_core-1.0.0.rc2 lib/spree/core/testing_support/factories.rb
spree_core-1.0.0.rc1 lib/spree/core/testing_support/factories.rb