Permalink
Browse files

merge in NullObject from master

  • Loading branch information...
2 parents 5919882 + a897e61 commit f4fb03cbc9a78a0d83838cea87e03bf5316e8c3d @dchelimsky dchelimsky committed Jun 2, 2010
Showing with 7 additions and 2 deletions.
  1. +7 −2 spec/spec_helper.rb
View
@@ -34,10 +34,15 @@ def fail_with(message)
end
end
+ class NullObject
+ def method_missing(method, *args, &block)
+ # ignore
+ end
+ end
+
class RSpec::Core::ExampleGroup
- include RSpec::Matchers
def self.run_all(reporter=nil)
- run(reporter || RSpec::Mocks::Mock.new('reporter').as_null_object)
+ run(reporter || NullObject.new)
end
end

0 comments on commit f4fb03c

Please sign in to comment.