# File lib/flexmock/rspec_spy_matcher.rb, line 25 def failure_message_for_should describe_spy_expectation(@spy, @method_name, @args, @options) end
# File lib/flexmock/rspec_spy_matcher.rb, line 29 def failure_message_for_should_not describe_spy_negative_expectation(@spy, @method_name, @args, @options) end
# File lib/flexmock/rspec_spy_matcher.rb, line 17 def matches?(spy) @spy = spy @options = {} @options[:times] = @times if @times @options[:with_block] = @needs_block unless @needs_block.nil? @spy.flexmock_received?(@method_name, @args, @options) end
# File lib/flexmock/rspec_spy_matcher.rb, line 53 def never times(0) end
# File lib/flexmock/rspec_spy_matcher.rb, line 57 def once times(1) end
# File lib/flexmock/rspec_spy_matcher.rb, line 48 def times(n) @times = n self end
# File lib/flexmock/rspec_spy_matcher.rb, line 61 def twice times(2) end
# File lib/flexmock/rspec_spy_matcher.rb, line 33 def with(*args) @args = args self end
Generated with the Darkfish Rdoc Generator 2.