examples/quicknote/spec/quicknote/form_main_spec.rb in win32-autogui-0.3.0 vs examples/quicknote/spec/quicknote/form_main_spec.rb in win32-autogui-0.4.0

- old
+ new

@@ -157,11 +157,11 @@ @application.set_focus end it "should do nothing unless modified text" do append_to_file(@filename, "sneak in extra content that shouldn't be here") - contents = get_file_content(@filename) + contents = get_file_contents(@filename) contents.should match(/extra content/) @application.file_save contents.should match(/extra content/) @application.edit_window.text.should_not match(/extra content/) end @@ -175,11 +175,11 @@ end it "should save the text" do type_in("foobar") @application.edit_window.text.should == "foobar" + "original content" @application.file_save - get_file_content(@filename).should == "foobar" + "original content" + get_file_contents(@filename).should == "foobar" + "original content" end end describe "failing" do before(:each) do @@ -247,12 +247,12 @@ it "should add the filename to the title" do @application.file_save_as(fullpath(@saveas_filename), :overwrite => true) @application.main_window.title.downcase.should == "QuickNote - #{fullpath(@saveas_filename)}".downcase end it "should save the text" do - get_file_content(@saveas_filename).should == '' + get_file_contents(@saveas_filename).should == '' @application.file_save_as(fullpath(@saveas_filename), :overwrite => true) - get_file_content(@saveas_filename).should match(/original content/) + get_file_contents(@saveas_filename).should match(/original content/) end end describe "file exit (VK_MENU, VK_F, VK_X)" do it "should prompt and save with modified text" do