Permalink
Browse files

Fix confusing code comment.

  • Loading branch information...
1 parent df822fe commit 68f1d1c1bacad919a5528014da03f76b7165eabc @myronmarston myronmarston committed Oct 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rspec/mocks/stub_const.rb
@@ -17,14 +17,14 @@ module RecursiveConstMethods
# On 1.8:
# - C.const_get("Hash") # => ::Hash
# - C.const_defined?("Hash") # => false
- # - C.constants # => ["A"]
+ # - C.constants # => ["B"]
# - None of these methods accept the extra `inherit` argument
# On 1.9:
# - C.const_get("Hash") # => ::Hash
# - C.const_defined?("Hash") # => true
# - C.const_get("Hash", false) # => raises NameError
# - C.const_defined?("Hash", false) # => false
- # - C.constants # => [:A]
+ # - C.constants # => [:B]
# - C.constants(false) #=> []
if Module.method(:const_defined?).arity == 1
def const_defined_on?(mod, const_name)

0 comments on commit 68f1d1c

Please sign in to comment.