examples/quicknote/spec/quicknote/form_splash_spec.rb in win32-autogui-0.4.3 vs examples/quicknote/spec/quicknote/form_splash_spec.rb in win32-autogui-0.5.0

- old
+ new

@@ -2,21 +2,21 @@ require 'timeout' include Autogui::Input describe "FormSplash" do - after(:all) do - if @application.running? + after(:each) do + if @application && @application.running? @application.splash.wait_for_close if @application.splash @application.file_exit # still running? force it to close @application.close(:wait_for_close => true) @application.should_not be_running end end describe "startup with no command line parameters" do - before(:all) do + before(:each) do # --nosplash is the default, turn it back on @application = Quicknote.new :parameters => '' @application.should be_running end