Sha256: 3c2603a1441a352effbd246c71868f275acf8ed92569cc47481518e30c587184

Contents?: true

Size: 791 Bytes

Versions: 21

Compression:

Stored size: 791 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"

unless defined? SHOP_ROOT
  
  SHOP_ROOT = ShopExtension.root + '/spec'
  
  Dataset::Resolver.default << (SHOP_ROOT + "/datasets")
  
  if File.directory?(SHOP_ROOT + "/matchers")
    Dir[SHOP_ROOT + "/matchers/**/*.rb"].each {|file| require file }
  end
  
  Spec::Runner.configure do |config|
    config.mock_with :rr
  end
  
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
radiant-shop-extension-0.94.8 spec/spec_helper.rb
radiant-shop-extension-0.94.7 spec/spec_helper.rb
radiant-shop-extension-0.94.6 spec/spec_helper.rb
radiant-shop-extension-0.94.5 spec/spec_helper.rb
radiant-shop-extension-0.94.4 spec/spec_helper.rb
radiant-shop-extension-0.94.3 spec/spec_helper.rb
radiant-shop-extension-0.94.2 spec/spec_helper.rb
radiant-shop-extension-0.94.1 spec/spec_helper.rb
radiant-shop-extension-0.94.0 spec/spec_helper.rb
radiant-shop-extension-0.93.3 spec/spec_helper.rb
radiant-shop-extension-0.93.2 spec/spec_helper.rb
radiant-shop-extension-0.93.1 spec/spec_helper.rb
radiant-shop-extension-0.93.0 spec/spec_helper.rb
radiant-shop-extension-0.92.11 spec/spec_helper.rb
radiant-shop-extension-0.92.10 spec/spec_helper.rb
radiant-shop-extension-0.92.9 spec/spec_helper.rb
radiant-shop-extension-0.92.8 spec/spec_helper.rb
radiant-shop-extension-0.92.7 spec/spec_helper.rb
radiant-shop-extension-0.92.6 spec/spec_helper.rb
radiant-shop-extension-0.92.3 spec/spec_helper.rb