Permalink
Browse files

Let's keep things ticking along nicely for those using RSpec 2

  • Loading branch information...
1 parent 9485d04 commit 06be7b060c6e86f0d607b195bd0b2b8bfec087f9 @pat committed Oct 24, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/fake_web_matcher.rb
View
@@ -26,7 +26,8 @@ module FakeWebMatcher
include FakeWebMatcher::Extension
end
-Spec::Runner.configure { |config|
+rspec = defined?(Spec) && defined?(Spec::Runner) ? Spec::Runner : RSpec
+rspec.configure { |config|
# Adding the custom matcher to the default set
config.include FakeWebMatcher::Matchers

0 comments on commit 06be7b0

Please sign in to comment.