Sha256: 621f731bbb819f638b1617b5479468336b48b59c1eb1c10e6dbc1a9eb0a70024

Contents?: true

Size: 935 Bytes

Versions: 26

Compression:

Stored size: 935 Bytes

Contents

Then /it should return an? (\w+)$/ do |class_string|
  @response_from_httparty.should be_an_instance_of(class_string.class)
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.to_i)
end

Then /it should raise (?:an|a) ([\w:]+) exception/ do |exception|
  @exception_from_httparty.should_not be_nil
  @exception_from_httparty.class.name.should eql(exception)
end

Version data entries

26 entries across 26 versions & 6 rubygems

Version Path
httparty-0.10.2 features/steps/httparty_response_steps.rb
httparty-0.10.1 features/steps/httparty_response_steps.rb
httparty-0.10.0 features/steps/httparty_response_steps.rb
dkastner-httparty-0.9.0 features/steps/httparty_response_steps.rb
httparty-0.9.0 features/steps/httparty_response_steps.rb
httparty-0.8.3 features/steps/httparty_response_steps.rb
httparty-0.8.2 features/steps/httparty_response_steps.rb
nutshell-crm-0.0.6.alpha vendor/bundle/gems/httparty-0.8.1/features/steps/httparty_response_steps.rb
nutshell-crm-0.0.5 vendor/bundle/gems/httparty-0.8.1/features/steps/httparty_response_steps.rb
nutshell-crm-0.0.4 vendor/bundle/gems/httparty-0.8.1/features/steps/httparty_response_steps.rb
nutshell-crm-0.0.3 vendor/bundle/gems/httparty-0.8.1/features/steps/httparty_response_steps.rb
nutshell-crm-0.0.2 vendor/bundle/gems/httparty-0.8.1/features/steps/httparty_response_steps.rb
nutshell-crm-0.0.1 vendor/bundle/gems/httparty-0.8.1/features/steps/httparty_response_steps.rb
httparty-0.8.1 features/steps/httparty_response_steps.rb
httparty-0.8.0 features/steps/httparty_response_steps.rb
httparty2-0.7.10 features/steps/httparty_response_steps.rb
httparty-0.7.8 features/steps/httparty_response_steps.rb
httparty-0.7.7 features/steps/httparty_response_steps.rb
httparty-0.7.6 features/steps/httparty_response_steps.rb
httparty-0.7.4 features/steps/httparty_response_steps.rb