search for: multiyield

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

Did you mean: multifield
2006 Sep 29
2
multiyield
...mine is probably worthless. Instead, I need yield to yield 3 values when I call it once: (behavior that mimics Find.find) def test_generate(documentation = ''/test_documentation/'', destination = ''/destination/'') Find.expects(:find).with(documentation).multiyield (''filename.yaml'', ''blah.xml'') File.expects(:directory?).with(''filename.yaml'') File.expects(:directory?).with(''blah.xml'') .... end So, I wrote multiyield.... Index: test/mocha/expectation_test.rb ============...