Sha256: ddf4a666f6685d8d74e0d578452d3cf9a7e8c41e3283a62effee9f96edabc7d0

Contents?: true

Size: 862 Bytes

Versions: 6

Compression:

Stored size: 862 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.treat_symbols_as_metadata_keys_with_true_values = true
  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

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-testing-2.1.5 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-2.1.4 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-2.1.3 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-2.1.2 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-2.1.1 lib/generators/refinery/testing/templates/spec/spec_helper.rb
refinerycms-testing-2.1.0 lib/generators/refinery/testing/templates/spec/spec_helper.rb