diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/util/file_edit_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/util/file_edit_spec.rb b/spec/unit/util/file_edit_spec.rb index 9acfb1baea..f85c588699 100644 --- a/spec/unit/util/file_edit_spec.rb +++ b/spec/unit/util/file_edit_spec.rb @@ -213,4 +213,11 @@ twice expect(edited_file_contents).to eq(append_twice) end end + + describe "file_edited" do + it "should return true if a file got edited" do + @fedit.insert_line_if_no_match(/pattern/, "new line inserted") + @fedit.file_edited?.should == true + end + end end |