spec/spec_helper.rb in controller_resources-0.1.0 vs spec/spec_helper.rb in controller_resources-0.1.1

- old
+ new

@@ -1,26 +1,32 @@ +$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) +require 'codeclimate-test-reporter' + +CodeClimate::TestReporter.start + ENV['RAILS_ENV'] ||= 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'capybara/rspec' -require 'codeclimate-test-reporter' +# require 'capybara/poltergeist' require 'database_cleaner' require 'pry' # Perform all DB operations within a transaction. DatabaseCleaner.strategy = :transaction -# Start test coverage reporting -CodeClimate::TestReporter.start - # Clean backtraces Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } +# Capybara.javascript_driver = :poltergeist + # Configure RSpec with `--init`-based options. RSpec.configure do |config| + config.fixture_path = File.expand_path('../fixtures', __FILE__) + config.global_fixtures = :all config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false # rspec-expectations config goes here. You can use an alternate # assertion/expectation library such as wrong or the stdlib/minitest