spec/unpack_spec.rb in unpack-0.1.9 vs spec/unpack_spec.rb in unpack-0.2.0
- old
+ new
@@ -326,6 +326,13 @@
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
+
+ it "should work with folders that contain whitespace" do
+ %x{mkdir -p '/tmp/I Spit on Your Grave[2010][Unrated Edition]DvDrip[Eng]-FXG'}
+ lambda {
+ Unpack.it!(:file => "spec/data/from/test_package.rar", :to => '/tmp/I Spit on Your Grave[2010][Unrated Edition]DvDrip[Eng]-FXG')
+ }.should_not raise_error(Exception)
+ end
end
\ No newline at end of file