spec/unpack_spec.rb in unpack-0.1.6 vs spec/unpack_spec.rb in unpack-0.1.7
- old
+ new
@@ -321,6 +321,10 @@
end
it "should have some unarchived files" do
Unpack.it!(file: "spec/data/from/test_package.rar").should have(5).files
end
+
+ it "should contain the right directory when defining a destination path" do
+ Unpack.it!(file: "spec/data/from/test_package.rar", to: 'spec/data/to').directory.should match(/spec\/data\/to/)
+ end
end
\ No newline at end of file