# File lib/flexmock.rb, line 657 657: def method_missing(sym, *args, &block) 658: expectation = @mock.should_receive(sym).and_return(&block) 659: if @strict 660: args = args.collect { |arg| eq(arg) } 661: expectation.with(*args).ordered.once 662: else 663: expectation.with(*args) 664: end 665: expectation 666: end