Skip to content
This repository has been archived by the owner on Oct 27, 2021. It is now read-only.

Commit

Permalink
add rdoc for as_null_object
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Dec 25, 2009
1 parent fc2cca6 commit 14deb19
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions lib/spec/mocks/methods.rb
Expand Up @@ -55,6 +55,19 @@ def stub_chain(*methods)
end
end

# Record and otherwise ignore all messages that aren't specified,
# with +stub+, +stub!+, or +should_receive+.
#
# == Returns
# self
def as_null_object
__mock_proxy.as_null_object
end

def null_object?
__mock_proxy.null_object?
end

def received_message?(sym, *args, &block) #:nodoc:
__mock_proxy.received_message?(sym.to_sym, *args, &block)
end
Expand All @@ -66,14 +79,6 @@ def rspec_verify #:nodoc:
def rspec_reset #:nodoc:
__mock_proxy.reset
end

def as_null_object
__mock_proxy.as_null_object
end

def null_object?
__mock_proxy.null_object?
end

private

Expand Down

0 comments on commit 14deb19

Please sign in to comment.