Sha256: f93c7255ad157dca4ee059bb691e447efe126f2a97c1747dde58b64f433d5167

Contents?: true

Size: 545 Bytes

Versions: 10

Compression:

Stored size: 545 Bytes

Contents

When /I fetch headers from "(.*)"/ do |url|
  visit(url)
  @headers = response.header
end

Then /^the "(.*)" header should be "(.*)"$/ do |name, value|
  @headers[name].should == value
end

Then /^the response should contain the "(.*)" header$/ do |name|
  @headers.should have_key(name.downcase)
end

Then /^the "(.*)" header should contain "(.*)"$/ do |name, expression|
  @headers[name].should match(expression)
end

Then /^the "(.*)" header should not contain "(.*)"$/ do |name, expression|
  @headers[name].should_not match(expression)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cucumber-nagios-0.9.2 lib/cucumber/nagios/steps/http_header_steps.rb
cucumber-nagios-0.9.0 lib/cucumber/nagios/steps/http_header_steps.rb
cucumber-nagios-0.8.11 lib/cucumber/nagios/steps/http_header_steps.rb
cucumber-nagios-0.8.10 lib/cucumber/nagios/steps/http_header_steps.rb
cucumber-nagios-0.8.9 lib/cucumber/nagios/steps/http_header_steps.rb
cucumber-nagios-0.8.8 lib/cucumber/nagios/steps/http_header_steps.rb
cucumber-nagios-0.8.7 lib/cucumber/nagios/steps/http_header_steps.rb
cucumber-nagios-0.8.6 lib/cucumber/nagios/steps/http_header_steps.rb
cucumber-nagios-0.8.5 lib/cucumber/nagios/steps/http_header_steps.rb
cucumber-nagios-0.8.4 lib/cucumber/nagios/steps/http_header_steps.rb