Sha256: f461fa971214cb58f0ac31b2e989735a2e118dd7a31cd03cb5ab1d8a622c6597
Contents?: true
Size: 677 Bytes
Versions: 2
Compression:
Stored size: 677 Bytes
Contents
When /I fetch (.*)/ do | url | visit url @url_headers = response.header end Then /^the "(.*)" header should be "(.*)"$/ do | header_name, header_value| @url_headers[header_name].should == header_value end Then /^the response should contain the "(.*)" header$/ do | header_name | @url_headers.should have_key(header_name.downcase) end ### header contains checks Then /^the "(.*)" header should contain "(.*)"$/ do | header_name, header_contains | @url_headers[header_name].should match header_contains end Then /^the "(.*)" header should not contain "(.*)"$/ do | header_name, header_contains | @url_headers[header_name].should_not match header_contains end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-nagios-0.8.3 | lib/cucumber/nagios/steps/http_header_steps.rb |
cucumber-nagios-0.8.2 | lib/cucumber/nagios/steps/http_header_steps.rb |