Object
A composite expectation allows several expectations to be grouped into a single composite and then apply the same constraints to all expectations in the group.
Add an expectation to the composite.
# File lib/flexmock/expectation.rb, line 407 def add(expectation) @expectations << expectation end
Apply the constraint method to all expectations in the composite.
# File lib/flexmock/expectation.rb, line 412 def method_missing(sym, *args, &block) @expectations.each do |expectation| expectation.send(sym, *args, &block) end self end
Return the associated mock object.
# File lib/flexmock/expectation.rb, line 428 def mock @expectations.first.mock end
Return the order number of the first expectation in the list.
# File lib/flexmock/expectation.rb, line 423 def order_number @expectations.first.order_number end
Generated with the Darkfish Rdoc Generator 2.