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

Version Path
mechanical-cuke-0.4.3 features/step_definitions/basic_auth_steps.rb
mechanical-cuke-0.4.2 features/step_definitions/basic_auth_steps.rb
mechanical-cuke-0.4.1 features/step_definitions/basic_auth_steps.rb
mechanical-cuke-0.4.0 features/step_definitions/basic_auth_steps.rb
mechanical-cuke-0.3.1 features/step_definitions/basic_auth_steps.rb