Skip to content

Commit

Permalink
Mocha prevents stubbing non-existant methods
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Sep 25, 2009
1 parent 84beee5 commit 5231561
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Expand Up @@ -12,6 +12,7 @@

Spec::Runner.configure do |config|
config.mock_with :mocha
Mocha::Configuration.prevent(:stubbing_non_existent_method)
end

class Person < Mongoid::Document
Expand Down

0 comments on commit 5231561

Please sign in to comment.