cucumber-nagios 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -0
- data/VERSION +1 -1
- data/cucumber-nagios.gemspec +2 -2
- data/lib/cucumber/nagios/steps/http_header_steps.rb +15 -16
- metadata +4 -4
data/README.md
CHANGED
@@ -33,6 +33,11 @@ Install the gem with:
|
|
33
33
|
This will add the `cucumber-nagios-gen` command to your path, and make the
|
34
34
|
shipped cucumber-nagios steps available to other projects using Cucumber.
|
35
35
|
|
36
|
+
*Windows users* - you need to download and install the
|
37
|
+
[Ruby Installer](http://rubyinstaller.org/downloads/) and the
|
38
|
+
[development kit](http://rubyinstaller.org/add-ons/devkit/), otherwise
|
39
|
+
`gem install cucumber-nagios` will fail.
|
40
|
+
|
36
41
|
|
37
42
|
Setting up a project
|
38
43
|
====================
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.4
|
data/cucumber-nagios.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cucumber-nagios}
|
8
|
-
s.version = "0.8.
|
8
|
+
s.version = "0.8.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Lindsay Holmwood"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-01-01}
|
13
13
|
s.default_executable = %q{cucumber-nagios-gen}
|
14
14
|
s.description = %q{cucumber-nagios helps you write high-level behavioural tests for your web applications and Unix infrastructure that can be plugged into Nagios.}
|
15
15
|
s.email = %q{lindsay@holmwood.id.au}
|
@@ -1,21 +1,20 @@
|
|
1
|
-
When /I fetch (.*)/ do |
|
2
|
-
visit
|
3
|
-
@
|
1
|
+
When /I fetch headers from "(.*)"/ do |url|
|
2
|
+
visit(url)
|
3
|
+
@headers = response.header
|
4
4
|
end
|
5
|
-
|
6
|
-
Then /^the "(.*)" header should be "(.*)"$/ do |
|
7
|
-
@
|
5
|
+
|
6
|
+
Then /^the "(.*)" header should be "(.*)"$/ do |name, value|
|
7
|
+
@headers[name].should == value
|
8
8
|
end
|
9
|
-
|
10
|
-
Then /^the response should contain the "(.*)" header$/ do |
|
11
|
-
@
|
9
|
+
|
10
|
+
Then /^the response should contain the "(.*)" header$/ do |name|
|
11
|
+
@headers.should have_key(name.downcase)
|
12
12
|
end
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
@url_headers[header_name].should match header_contains
|
13
|
+
|
14
|
+
Then /^the "(.*)" header should contain "(.*)"$/ do |name, expression|
|
15
|
+
@headers[name].should match(expression)
|
17
16
|
end
|
18
|
-
|
19
|
-
Then /^the "(.*)" header should not contain "(.*)"$/ do |
|
20
|
-
@
|
17
|
+
|
18
|
+
Then /^the "(.*)" header should not contain "(.*)"$/ do |name, expression|
|
19
|
+
@headers[name].should_not match(expression)
|
21
20
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-nagios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 4
|
10
|
+
version: 0.8.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lindsay Holmwood
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-01 00:00:00 +11:00
|
19
19
|
default_executable: cucumber-nagios-gen
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|