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