Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 92b18182e254ea597abac434e4f581ffe3587e7e 1 parent e0035b3
@ggilder ggilder authored myronmarston committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.