Sha256: fe3b4f72092a51ee7ccf7629202fbef480868d0c7000d3d4b412d303134a4153
Contents?: true
Size: 365 Bytes
Versions: 5
Compression:
Stored size: 365 Bytes
Contents
Given /^I have no basic auth credentials$/ do basic_auth(nil, nil) end Then /^I should not be able to access (.+)$/ do |page_name| assert_raise(Mechanize::ResponseCodeError) { get path_to(page_name) } end Given /^I have basic auth credentials "([^\"]*)"$/ do |credentials| username, password = credentials.split(':') basic_auth(username, password) end
Version data entries
5 entries across 5 versions & 1 rubygems