spec/file_spec.rb in templater-0.1.5 vs spec/file_spec.rb in templater-0.1.6
- old
+ new
@@ -86,6 +86,12 @@
file.revoke!
File.exists?(result_path('path/to/subdir/test2.rbs')).should be_false
end
+ it "should do nothing when the destination file doesn't exist" do
+ file = Templater::Actions::File.new(:monkey, template_path('simple_erb.rbt'), result_path('path/to/subdir/test2.rbs'))
+
+ lambda { file.revoke! }.should_not raise_error
+ end
+
end