# File lib/flexmock/rspec_spy_matcher.rb, line 69 def and(&block) @additional_validations << block self end
# File lib/flexmock/rspec_spy_matcher.rb, line 74 def construct_options { :times => @times, :with_block => @needs_block, :on_count => @on_count, :and => @additional_validations, } end
# File lib/flexmock/rspec_spy_matcher.rb, line 24 def failure_message_for_should describe_spy_expectation(@spy, @method_name, @args, @options) end
# File lib/flexmock/rspec_spy_matcher.rb, line 28 def failure_message_for_should_not describe_spy_negative_expectation(@spy, @method_name, @args, @options) end
# File lib/flexmock/rspec_spy_matcher.rb, line 18 def matches?(spy) @spy = spy @options = construct_options @spy.flexmock_received?(@method_name, @args, @options) end
# File lib/flexmock/rspec_spy_matcher.rb, line 52 def never times(0) end
# File lib/flexmock/rspec_spy_matcher.rb, line 64 def on(on_count) @on_count = on_count self end
# File lib/flexmock/rspec_spy_matcher.rb, line 56 def once times(1) end
# File lib/flexmock/rspec_spy_matcher.rb, line 47 def times(n) @times = n self end
# File lib/flexmock/rspec_spy_matcher.rb, line 60 def twice times(2) end
# File lib/flexmock/rspec_spy_matcher.rb, line 32 def with(*args) @args = args self end
Generated with the Darkfish Rdoc Generator 2.