spex 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/spex/checks/created_check.rb +1 -1
- data/lib/spex/checks/removed_check.rb +9 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.2
|
@@ -8,12 +8,18 @@ module Spex
|
|
8
8
|
example "Directory was removed", "check '/tmp/foo', :removed => {:type => 'directory'}"
|
9
9
|
|
10
10
|
def before
|
11
|
-
|
12
|
-
|
11
|
+
if active?
|
12
|
+
assert File.exist?(target), "File does not exist at #{target}"
|
13
|
+
check_type
|
14
|
+
end
|
13
15
|
end
|
14
16
|
|
15
17
|
def after
|
16
|
-
|
18
|
+
if active?
|
19
|
+
assert !File.exist?(target), "File still exists at #{target}"
|
20
|
+
else
|
21
|
+
assert File.exist?(target), "File was removed from #{target}"
|
22
|
+
end
|
17
23
|
end
|
18
24
|
|
19
25
|
private
|