Sha256: 112e81937848c8c0c65026388e0c0e051905b02b91e5111ff69ee8f5cc33932e
Contents?: true
Size: 905 Bytes
Versions: 3
Compression:
Stored size: 905 Bytes
Contents
unless defined? RADIANT_ROOT ENV["RAILS_ENV"] = "test" case when ENV["RADIANT_ENV_FILE"] require ENV["RADIANT_ENV_FILE"] when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions} require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment" else require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" end end require "#{RADIANT_ROOT}/spec/spec_helper" Dataset::Resolver.default << (File.dirname(__FILE__) + "/../../shop/spec/datasets") Dataset::Resolver.default << (File.dirname(__FILE__) + "/../../shop_discounts/spec/datasets") Dataset::Resolver.default << (File.dirname(__FILE__) + "/datasets") if File.directory?(File.dirname(__FILE__) + "/matchers") Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file } end Spec::Runner.configure do |config| config.mock_with :rr end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radiant-shop_packages-extension-0.0.6 | spec/spec_helper.rb |
radiant-shop_packages-extension-0.0.5 | spec/spec_helper.rb |
radiant-shop_packages-extension-0.0.4 | spec/spec_helper.rb |