search for: yield_results

Displaying 1 result from an estimated 1 matches for "yield_results".

2006 Sep 29
1
yielding consecutive values
I''m not sure if someone has already addressed this issue, but if not, here goes. I need the following behavior: def test_generate(documentation = ''/test_documentation/'', destination = ''/destination/'') yield_results = [''/'', ''filename.yaml'', ''blah.xml''] Find.expects(:find).with(documentation).yields(lambda { yield_results.shift } ) ... end So I made these changes... Index: test/mocha/expectation_test.rb ======================================...