decimate 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/decimate/version.rb +1 -1
- data/spec/lib/decimate_spec.rb +2 -2
- metadata +1 -1
data/lib/decimate/version.rb
CHANGED
data/spec/lib/decimate_spec.rb
CHANGED
@@ -63,7 +63,7 @@ describe Decimate do
|
|
63
63
|
end
|
64
64
|
|
65
65
|
it 'should securely delete the given file' do
|
66
|
-
Open3.should_receive(:capture3).with("shred -uv #{file}").and_return([stdout,"",nil])
|
66
|
+
Open3.should_receive(:capture3).with("shred -uv #{File.expand_path(file)}").and_return([stdout,"",nil])
|
67
67
|
Decimate.file!(file).should == stdout
|
68
68
|
end
|
69
69
|
|
@@ -84,7 +84,7 @@ describe Decimate do
|
|
84
84
|
end
|
85
85
|
|
86
86
|
it 'should securely delete all files under the given file' do
|
87
|
-
Open3.should_receive(:capture3).with("find #{dir} -type f -exec shred -uv {} +")
|
87
|
+
Open3.should_receive(:capture3).with("find #{File.expand_path(dir)} -type f -exec shred -uv {} +")
|
88
88
|
Decimate.dir! dir
|
89
89
|
end
|
90
90
|
|