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
timriley-httparty-0.3.1 features/steps/httparty_steps.rb
timriley-httparty-0.3.2 features/steps/httparty_steps.rb
voxdolo-httparty-0.3.1 features/steps/httparty_steps.rb
voxdolo-httparty-0.4.1 features/steps/httparty_steps.rb
spreedly-1.3.5 vendor/httparty/features/steps/httparty_steps.rb
spreedly-1.3.4 vendor/httparty/features/steps/httparty_steps.rb
spreedly-1.3.3 vendor/httparty/features/steps/httparty_steps.rb
spreedly-1.3.2 vendor/httparty/features/steps/httparty_steps.rb
kerryb-httparty-0.4.4 features/steps/httparty_steps.rb
yyyc514-httparty-0.4.4.2 features/steps/httparty_steps.rb
spreedly-1.3.1 vendor/httparty/features/steps/httparty_steps.rb
httparty-0.4.4 features/steps/httparty_steps.rb
httparty-0.2.10 features/steps/httparty_steps.rb
httparty-0.3.1 features/steps/httparty_steps.rb
httparty-0.3.0 features/steps/httparty_steps.rb
httparty-0.2.9 features/steps/httparty_steps.rb
httparty-0.4.0 features/steps/httparty_steps.rb
httparty-0.4.2 features/steps/httparty_steps.rb
httparty-0.4.1 features/steps/httparty_steps.rb
httparty-0.4.3 features/steps/httparty_steps.rb