Sha256: 194c56ebefb2441255367510e9754db295e2e6fe43c2fa870d6e9a3968f7ec3c

Contents?: true

Size: 500 Bytes

Versions: 47

Compression:

Stored size: 500 Bytes

Contents

When /I call HTTParty#get with '(.*)'$/ do |url|
  begin
    @response_from_httparty = HTTParty.get("http://#{@host_and_port}#{url}")
  rescue HTTParty::RedirectionTooDeep => e
    @exception_from_httparty = e
  end
end

When /I call HTTParty#get with '(.*)' and a basic_auth hash:/ do |url, auth_table|
  h = auth_table.hashes.first
  @response_from_httparty = HTTParty.get(
    "http://#{@host_and_port}#{url}",
    :basic_auth => { :username => h["username"], :password => h["password"] }
  )
end

Version data entries

47 entries across 47 versions & 14 rubygems

Version Path
spreedly-1.0.1 vendor/httparty/features/steps/httparty_steps.rb
spreedly-1.0.0 vendor/httparty/features/steps/httparty_steps.rb
spreedly-1.2.1 vendor/httparty/features/steps/httparty_steps.rb
spreedly-1.2.0 vendor/httparty/features/steps/httparty_steps.rb
spreedly-1.1.0 vendor/httparty/features/steps/httparty_steps.rb
spreedly-1.3.0 vendor/httparty/features/steps/httparty_steps.rb
spreedly-1.2.2 vendor/httparty/features/steps/httparty_steps.rb