Sha256: b875da596a9b4b72d573abf0cded67989c3dcd21341d2c87271474a42b7c0686
Contents?: true
Size: 729 Bytes
Versions: 2
Compression:
Stored size: 729 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'helper')) class WindowTestCase < QRToolsTestCase def test_new assert camera = QRTools::UI::Window.new("foo") end def test_show assert camera = QRTools::UI::Window.new("foo") assert camera.show end def test_hide assert camera = QRTools::UI::Window.new("foo") assert camera.hide end def test_show_image QRTools::UI::Window.new("foo") do |window| QRTools::UI::Camera.new(0) do |camera| window.display camera.capture end end end def test_new_takes_block called = false QRTools::UI::Window.new("foo") do |window| assert window called = true end assert called end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qrtools-1.0.0 | test/ui/test_window.rb |
qrtools-1.0.1 | test/ui/test_window.rb |