spex 0.7.0 → 0.7.1
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/README.md +4 -6
- data/VERSION +1 -1
- data/lib/spex/checks/created_check.rb +8 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -5,12 +5,10 @@ A quick and dirty harness for running system state checks before and after
|
|
5
5
|
an executable is run.
|
6
6
|
|
7
7
|
It can be used:
|
8
|
-
|
9
|
-
|
10
|
-
* In production, to ensure the system is in a known state before an
|
11
|
-
|
12
|
-
* In production, to provide independent logging/reporting of
|
13
|
-
executable status.
|
8
|
+
|
9
|
+
* When developing an executable/configuration, to check real-world results.
|
10
|
+
* In production, to ensure the system is in a known state before an executable is run.
|
11
|
+
* In production, to provide independent logging/reporting of executable status.
|
14
12
|
|
15
13
|
Synopsis
|
16
14
|
--------
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
@@ -8,11 +8,17 @@ module Spex
|
|
8
8
|
example "Directory was created", "check '/tmp/foo', :created => {:type => 'directory'}"
|
9
9
|
|
10
10
|
def before
|
11
|
-
|
11
|
+
if active?
|
12
|
+
assert !File.exist?(target), "File already exists at #{target}"
|
13
|
+
end
|
12
14
|
end
|
13
15
|
|
14
16
|
def after
|
15
|
-
|
17
|
+
if active?
|
18
|
+
assert File.exist?(target), "File was not created at #{target}"
|
19
|
+
else
|
20
|
+
assert !File.exist?(target), "File was created at #{target}"
|
21
|
+
end
|
16
22
|
check_type
|
17
23
|
end
|
18
24
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
8
|
+
- 1
|
9
|
+
version: 0.7.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bruce Williams
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-04-
|
17
|
+
date: 2010-04-23 00:00:00 -07:00
|
18
18
|
default_executable: spex
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|