Sha256: ec00a0928dbb1f7bf057464220e724565ed63d28e5497178f6454f59ff905b2d

Contents?: true

Size: 1.28 KB

Versions: 178

Compression:

Stored size: 1.28 KB

Contents

unless defined? SPREE_ROOT
  ENV["RAILS_ENV"] = "test"
  case
  when ENV["SPREE_ENV_FILE"]
    require ENV["SPREE_ENV_FILE"]
  when File.dirname(__FILE__) =~ %r{vendor/SPREE/vendor/extensions}
    require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../../")}/config/environment"
  else
    require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment"
  end
end
require "#{SPREE_ROOT}/spec/spec_helper"

if File.directory?(File.dirname(__FILE__) + "/scenarios")
  Scenario.load_paths.unshift File.dirname(__FILE__) + "/scenarios"
end
if File.directory?(File.dirname(__FILE__) + "/matchers")
  Dir[File.dirname(__FILE__) + "/matchers/*.rb"].each {|file| require file }
end

Spec::Runner.configure do |config|
  # config.use_transactional_fixtures = true
  # config.use_instantiated_fixtures  = false
  # config.fixture_path = RAILS_ROOT + '/spec/fixtures'

  # You can declare fixtures for each behaviour like this:
  #   describe "...." do
  #     fixtures :table_a, :table_b
  #
  # Alternatively, if you prefer to declare them only once, you can
  # do so here, like so ...
  #
  #   config.global_fixtures = :table_a, :table_b
  #
  # If you declare global fixtures, be aware that they will be declared
  # for all of your examples, even those that don't use them.
end

Version data entries

178 entries across 104 versions & 9 rubygems

Version Path
kdmny-spree-0.0.1 lib/generators/extension/templates/spec_helper.rb
spree_zone_pricing-0.1.69 spec/spec_helper.rb
spree_zone_pricing-0.1.68 spec/spec_helper.rb
spree_zone_pricing-0.1.66 spec/spec_helper.rb
spree_zone_pricing-0.1.65 spec/spec_helper.rb
spree_zone_pricing-0.1.64 spec/spec_helper.rb
spree_zone_pricing-0.1.63 spec/spec_helper.rb
spree_zone_pricing-0.1.62 spec/spec_helper.rb
spree_zone_pricing-0.1.61 spec/spec_helper.rb
spree_zone_pricing-0.1.60 spec/spec_helper.rb
spree_zone_pricing-0.1.59 spec/spec_helper.rb
spree_zone_pricing-0.1.58 spec/spec_helper.rb
spree_zone_pricing-0.1.57 spec/spec_helper.rb
spree_zone_pricing-0.1.56 spec/spec_helper.rb
spree_zone_pricing-0.1.55 spec/spec_helper.rb
spree_zone_pricing-0.1.54 spec/spec_helper.rb
spree_zone_pricing-0.1.53 spec/spec_helper.rb
spree_zone_pricing-0.1.52 spec/spec_helper.rb
spree_zone_pricing-0.1.51 spec/spec_helper.rb
spree_zone_pricing-0.1.50 spec/spec_helper.rb