Sha256: c84f698b144f5e49178e6b898912bed6057bc574cea882ce394ecb49b20ab5f8
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
# This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'capybara/rspec' # 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 } #include spree's factories require 'spree/core/testing_support/factories' require 'spree/core/testing_support/fixtures' # include local factories Dir["#{File.dirname(__FILE__)}/factories/**/*.rb"].each do |f| fp = File.expand_path(f) require fp end require 'ffaker' RSpec.configure do |config| config.mock_with :rspec config.fixture_path = "#{::Rails.root}/spec/fixtures" config.use_transactional_fixtures = true config.include Spree::UrlHelpers end Spree::Zone.class_eval do def self.global find_by_name("GlobalZone") || Factory(:global_zone) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_paypal_express-1.1.0 | spec/spec_helper.rb |