Permalink
Browse files

#159: Revise should(_not) to work with MacRuby

  • Loading branch information...
1 parent e0035b3 commit 92b18182e254ea597abac434e4f581ffe3587e7e @ggilder ggilder committed with myronmarston Jul 25, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rspec/expectations/syntax.rb
View
3 lib/rspec/expectations/syntax.rb
@@ -40,8 +40,7 @@ module Syntax
# @api private
# Determines where we add `should` and `should_not`.
def default_should_host
- @default_should_host ||= defined?(::BasicObject) ?
- ::BasicObject : ::Kernel
+ @default_should_host ||= Object.ancestors.last
end
# @api private

0 comments on commit 92b1818

Please sign in to comment.