spec/spec_helper.rb in refinerycms-admin-locales-1.0.1 vs spec/spec_helper.rb in refinerycms-admin-locales-2.0.0

- old
+ new

@@ -1,19 +1,13 @@ def setup_environment # Configure Rails Environment ENV["RAILS_ENV"] ||= 'test' - if File.exist?(dummy_path = File.expand_path('../spec/dummy/config/environment.rb', __FILE__)) - require dummy_path - elsif File.dirname(__FILE__) =~ %r{vendor/extensions} - # Require the path to the refinerycms application this is vendored inside. - require File.expand_path('../../../../../config/environment', __FILE__) - else - raise "Could not find a config/environment.rb file to require. Please specify this in spec/spec_helper.rb" - end + require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' require 'capybara/rspec' + require 'factory_girl_rails' Rails.backtrace_cleaner.remove_silencers! RSpec.configure do |config| config.mock_with :rspec