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...
pda committed Oct 31, 2011
1 parent 48d4cd3 commit a5030dfc78903abf918b0ba632da0d3304cbe2cc
Showing with 0 additions and 1 deletion.
  1. +0 −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.