spec/spec_helper.rb in writefully-0.7.1 vs spec/spec_helper.rb in writefully-0.8.0
- old
+ new
@@ -1,11 +1,11 @@
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../dummy/config/environment", __FILE__)
require 'rspec/rails'
-require 'rspec/autorun'
+require 'rspec/its'
require 'capybara/rspec'
require 'pry'
require 'coveralls'
Coveralls.wear!
@@ -32,18 +32,19 @@
# config.mock_with :rr
config.include Capybara::DSL
config.include Writefully::Engine.routes.url_helpers
- config.mock_with :rspec
+ config.mock_with :rspec do |mocks|
+ mocks.syntax = :should
+ end
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"
# If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false
# instead of true.
config.use_transactional_fixtures = true
- config.treat_symbols_as_metadata_keys_with_true_values = true
config.filter_run :focus => true
config.run_all_when_everything_filtered = true
# If true, the base class of anonymous controllers will be inferred
# automatically. This will be the default behavior in future versions of
# rspec-rails.