Skip to content

Commit

Permalink
Prevent stubbing non-existant methods in the specs
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Nov 30, 2015
1 parent 20144e4 commit 5fc7e13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -32,6 +32,8 @@ def fixture_path(*path)
File.join(File.dirname(__FILE__), 'fixtures', *path)
end

Mocha::Configuration.prevent(:stubbing_non_existent_method)

class Hash
def recursive_diff(other, self_key = 'self', other_key = 'other')
Xcodeproj::Differ.project_diff(self, other, self_key, other_key)
Expand Down

0 comments on commit 5fc7e13

Please sign in to comment.