Sha256: b0125ad96b4192efaddc04374a3d0b6a3139d68722c09a108f138a51c5c58a46

Contents?: true

Size: 952 Bytes

Versions: 32

Compression:

Stored size: 952 Bytes

Contents

Then /it should return an? (\w+)$/ do |class_string|
  @response_from_httparty.should be_an_instance_of(class_string.constantize)
end

Then /the return value should match '(.*)'/ do |expected_text|
  @response_from_httparty.should eql(expected_text)
end

Then /it should return a Hash equaling:/ do |hash_table|
  @response_from_httparty.should be_an_instance_of(Hash)
  @response_from_httparty.keys.length.should eql(hash_table.rows.length)
  hash_table.hashes.each do |pair|
    key, value = pair["key"], pair["value"]
    @response_from_httparty.keys.should include(key)
    @response_from_httparty[key].should eql(value)
  end
end

Then /it should return a response with a (\d+) response code/ do |code|
  @response_from_httparty.code.should eql(code)
end

Then /it should raise an HTTParty::RedirectionTooDeep exception/ do
  @exception_from_httparty.should_not be_nil
  @exception_from_httparty.class.should eql(HTTParty::RedirectionTooDeep)
end

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
alexvollmer-httparty-0.3.1 features/steps/httparty_response_steps.rb
jnunemaker-httparty-0.2.10 features/steps/httparty_response_steps.rb
jnunemaker-httparty-0.2.9 features/steps/httparty_response_steps.rb
jnunemaker-httparty-0.3.0 features/steps/httparty_response_steps.rb
jnunemaker-httparty-0.3.1 features/steps/httparty_response_steps.rb
jnunemaker-httparty-0.4.0 features/steps/httparty_response_steps.rb
jnunemaker-httparty-0.4.1 features/steps/httparty_response_steps.rb
kerryb-httparty-0.3.2 features/steps/httparty_response_steps.rb
kerryb-httparty-0.3.3 features/steps/httparty_response_steps.rb
leh-httparty-0.3.1.1 features/steps/httparty_response_steps.rb
timriley-httparty-0.3.1 features/steps/httparty_response_steps.rb
timriley-httparty-0.3.2 features/steps/httparty_response_steps.rb
voxdolo-httparty-0.3.1 features/steps/httparty_response_steps.rb
voxdolo-httparty-0.4.1 features/steps/httparty_response_steps.rb
spreedly-1.3.5 vendor/httparty/features/steps/httparty_response_steps.rb
spreedly-1.3.4 vendor/httparty/features/steps/httparty_response_steps.rb
spreedly-1.3.3 vendor/httparty/features/steps/httparty_response_steps.rb
spreedly-1.3.2 vendor/httparty/features/steps/httparty_response_steps.rb
spreedly-1.3.1 vendor/httparty/features/steps/httparty_response_steps.rb
httparty-0.2.10 features/steps/httparty_response_steps.rb