Skip to content

Commit

Permalink
Removed unnecessary "config.mock_with :rspec" from spec_helper.rb
Browse files Browse the repository at this point in the history
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#371
See: rspec/rspec-core#455
  • Loading branch information
pda committed Oct 31, 2011
1 parent 48d4cd3 commit a5030df
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/generators/rspec/install/templates/spec/spec_helper.rb
Expand Up @@ -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"
Expand Down

0 comments on commit a5030df

Please sign in to comment.