Skip to content
Browse files

Removed unnecessary "config.mock_with :rspec" from spec_helper.rb

This statement configures RSpec to do what it would do anyway, and
triggers errors regarding RSpec.configure being called after examples
have been defined.

See: rspec/rspec-rails#371
See: rspec/rspec-core#455
  • Loading branch information...
1 parent 48d4cd3 commit a5030dfc78903abf918b0ba632da0d3304cbe2cc @pda pda committed
Showing with 0 additions and 1 deletion.
  1. +0 −1 lib/generators/rspec/install/templates/spec/spec_helper.rb
View
1 lib/generators/rspec/install/templates/spec/spec_helper.rb
@@ -16,7 +16,6 @@
# config.mock_with :mocha
# config.mock_with :flexmock
# config.mock_with :rr
- config.mock_with :rspec
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = "#{::Rails.root}/spec/fixtures"

0 comments on commit a5030df

Please sign in to comment.
Something went wrong with that request. Please try again.