spex 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
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
- * When developing an executable/configuration, to check real-world
9
- results.
10
- * In production, to ensure the system is in a known state before an
11
- executable is run.
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.0
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
- assert !File.exist?(target), "File already exists at #{target}"
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
- assert File.exist?(target), "File was not created at #{target}"
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
- - 0
9
- version: 0.7.0
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-22 00:00:00 -07:00
17
+ date: 2010-04-23 00:00:00 -07:00
18
18
  default_executable: spex
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency