Quintus / Automations

Automations is a Ruby 1.9 project consisting of libraries to fake and simulate (automate) user input like pressing keys or moving windows. Linux X server systems can be automated by using xdotool internally, Windows systems by using AutoItX3.
30 stars 8 forks source link

Obscure error running the test_xwindow.rb test alone #2

Closed Quintus closed 14 years ago

Quintus commented 14 years ago

The "test_xwindow.rb" test fails with an ArgumentError after it has tested everything:

ruby -I../lib test_xwindow.rb
Loaded suite test_xwindow
Started
..........E

  1) Error:
WindowTest:
ArgumentError: wrong number of arguments (2 for 0)
    /home/marvin/Entpack/Quintus-Automations-813be32/xdo/trunk/lib/xdo/xwindow.rb:385:in `close!'
    test_xwindow.rb:23:in `shutdown'

Finished in 11.667346398 seconds.

10 tests, 10 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
Quintus commented 14 years ago

This happened due to a missing require "xdo/keyboard" and a naming error that caused XWindow#raise to be called instead of Kernel#raise. Fixed in 0.0.3.