Flowdock
method

test_each

Importance_0
v1_8_7_330 - Show latest stable - 0 notes - Class: TestWin32OLE
test_each() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File ext/win32ole/tests/testWIN32OLE.rb, line 118
  def test_each
    workbooks = @excel.Workbooks
    assert_no_exception {
      i = 0;
      workbooks.each do |workbook|
        print i += 1
      end
    }
    workbooks.add
    workbooks.add
    i = 0
    workbooks.each do |workbook|
      i+=1
    end
    assert_equal(2, i)
    workbooks.each do |workbook|
      workbook.saved = true
    end
  end
Register or log in to add new notes.