Sha256: 3588c60a05851cdad606a46e4304cafe521621f8990a37fefeb7be39720a73c9

Contents?: true

Size: 799 Bytes

Versions: 9

Compression:

Stored size: 799 Bytes

Contents

ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../') unless defined?(ENGINE_RAILS_ROOT)

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

require File.expand_path("../../config/environment", __FILE__)

require 'rspec/rails'
require 'capybara/rspec'

Rails.backtrace_cleaner.remove_silencers!

RSpec.configure do |config|
  config.mock_with :rspec
  config.filter_run :focus => true
  config.run_all_when_everything_filtered = true
end

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories including factories.
([ENGINE_RAILS_ROOT, Rails.root.to_s].uniq | ::Refinery::Plugins.registered.pathnames).map{ |p|
  Dir[File.join(p, 'spec', 'support', '**', '*.rb').to_s]
}.flatten.sort.each do |support_file|
  require support_file
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-testing-4.0.3 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-4.0.2 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-4.0.1 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-3.0.6 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-4.0.0 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-3.0.5 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-3.0.4 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-3.0.3 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-3.0.2 lib/generators/refinery/testing/templates/spec/spec_helper.rb