spec/auto_gui/application_spec.rb in win32-autogui-0.3.0 vs spec/auto_gui/application_spec.rb in win32-autogui-0.4.0

- old
+ new

@@ -1,8 +1,9 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') include Autogui::Input +include Autogui::Logging describe Autogui::Application do describe "driving calc.exe" do @@ -107,11 +108,11 @@ describe "copy (VK_CONTROL, VK_C)" do it "should copy the edit window" do @calculator.set_focus type_in("3002") - @calculator.edit_window.text.strip.should == "3,002." + @calculator.edit_window.text.strip.should match(/3,?002\./) @calculator.edit_window.set_focus keystroke(VK_CONTROL, VK_C) @calculator.clipboard.text.should == "3002" end end @@ -120,10 +121,10 @@ it "should paste into the edit window" do @calculator.edit_window.set_focus @calculator.clipboard.text = "12345" @calculator.edit_window.text.strip.should == "0." keystroke(VK_CONTROL, VK_V) - @calculator.edit_window.text.strip.should == "12,345." + @calculator.edit_window.text.strip.should match(/12,?345\./) end end end