Sha256: c5e8b855762d61a0ebde8d97ee77bb47d0111d2cafab1bc84e61a4f9aff92eec

Contents?: true

Size: 1.3 KB

Versions: 112

Compression:

Stored size: 1.3 KB

Contents

# Configure Rails Environment
ENV['RAILS_ENV'] = 'test'

require File.expand_path('../dummy/config/environment.rb',  __FILE__)

require 'rspec/rails'
require 'ffaker'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }

# Requires factories defined in spree_core
require 'spree/core/testing_support/factories'
require 'spree/core/url_helpers'

RSpec.configure do |config|
  config.include FactoryGirl::Syntax::Methods

  # == URL Helpers
  #
  # Allows access to Spree's routes in specs:
  #
  # visit spree.admin_path
  # current_path.should eql(spree.products_path)
  config.include Spree::Core::UrlHelpers

  # == Mock Framework
  #
  # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
  #
  # config.mock_with :mocha
  # config.mock_with :flexmock
  # config.mock_with :rr
  config.mock_with :rspec

  # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
  config.fixture_path = "#{::Rails.root}/spec/fixtures"

  # If you're not using ActiveRecord, or you'd prefer not to run each of your
  # examples within a transaction, remove the following line or assign false
  # instead of true.
  config.use_transactional_fixtures = true
end

Version data entries

112 entries across 112 versions & 19 rubygems

Version Path
spree_correios_shipping-1.1.4 spec/spec_helper.rb
spree_correios_shipping-1.1.3 spec/spec_helper.rb
spree_correios_shipping-1.1.2 spec/spec_helper.rb
spree_correios_shipping-1.1.1 spec/spec_helper.rb
spree_correios_shipping-1.1.0 spec/spec_helper.rb
spree_correios_shipping-1.0.0 spec/spec_helper.rb
spree_affiliate_links-1.3.1 spec/spec_helper.rb
spree_cmd-1.1.6 lib/spree_cmd/templates/extension/spec/spec_helper.rb.tt
spree_cmd-1.1.5 lib/spree_cmd/templates/extension/spec/spec_helper.rb.tt
spree_ifmb-0.0.2 spec/spec_helper.rb
spree_ifmb-0.0.1 spec/spec_helper.rb
spree_cmd-1.1.4 lib/spree_cmd/templates/extension/spec/spec_helper.rb.tt
spree_home_page_features-1.2.5 spec/spec_helper.rb
spree_taxonomy_published-1.2.1 spec/spec_helper.rb
spree_taxonomy_purpose-1.2.1 spec/spec_helper.rb
spree_home_page_features-1.2.4 spec/spec_helper.rb
spree_carousels-1.2.6 spec/spec_helper.rb
spree_carousels-1.2.5 spec/spec_helper.rb
spree_carousels-1.2.4 spec/spec_helper.rb
spree_restriction-1.2.4 spec/spec_helper.rb