spec/spec_helper.rb in rautomation-0.0.3 vs spec/spec_helper.rb in rautomation-0.0.4
- old
+ new
@@ -38,13 +38,13 @@
Spec::Runner.configure do |config|
config.before(:all) do
@pid1 = IO.popen(SpecHelper::DATA[:window1]).pid
@pid2 = IO.popen(SpecHelper::DATA[:window2] + " " + File.dirname(__FILE__) + "/test.html").pid
- window1 = RAutomation::Window.new(:title => SpecHelper::DATA[:window1_title])
- RAutomation::WaitHelper.wait_until(15) {window1.present?}
- window2 = RAutomation::Window.new(:title => SpecHelper::DATA[:window2_title])
- RAutomation::WaitHelper.wait_until(15) {window2.present?}
+ end
+
+ config.before(:each) do
+ RAutomation::Window.wait_timeout = 60
end
config.after(:all) do
Process.kill(9, @pid1) rescue nil
Process.kill(9, @pid2) rescue nil