trash 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/trash.rb +1 -1
- data/spec/trash_spec.rb +2 -2
- data/trash.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/trash.rb
CHANGED
data/spec/trash_spec.rb
CHANGED
@@ -33,7 +33,7 @@ describe "Trash" do
|
|
33
33
|
it "moves multiple files to the trash" do
|
34
34
|
`echo 'default text first' > /tmp/testing.txt`
|
35
35
|
`echo 'default text second' > /tmp/testing2.txt`
|
36
|
-
Trash.new.throw_out(["/tmp/testing.txt", "/tmp/testing2.txt"])
|
36
|
+
Trash.new.throw_out(*["/tmp/testing.txt", "/tmp/testing2.txt"])
|
37
37
|
tmp_should_not_contain "testing.txt"
|
38
38
|
tmp_should_not_contain "testing2.txt"
|
39
39
|
trash_should_contain "testing.txt"
|
@@ -102,7 +102,7 @@ describe "Trash" do
|
|
102
102
|
|
103
103
|
it "moves multiple directories to the trash" do
|
104
104
|
dirs = `mkdir -p /tmp/testdir01 /tmp/testdir02`
|
105
|
-
Trash.new.throw_out(["/tmp/testdir01", "/tmp/testdir02"])
|
105
|
+
Trash.new.throw_out(*["/tmp/testdir01", "/tmp/testdir02"])
|
106
106
|
tmp_should_not_contain "testdir01"
|
107
107
|
tmp_should_not_contain "testdir02"
|
108
108
|
trash_should_contain_directory "testdir01"
|
data/trash.gemspec
CHANGED