Sha256: 6b8d54a43b415f2b1af97995057adb3ca0d1398cbd2ab2adf7a5fe76326a001a

Contents?: true

Size: 393 Bytes

Versions: 6

Compression:

Stored size: 393 Bytes

Contents

require 'spec_helper'

describe StatRaptor::Client::Adapters::RestClient do
  describe ".request_api_response", :vcr do
    it "returns a RestClient response" do
      response = StatRaptor::Client::Adapters::RestClient.request_api_response(:get, "/users.json")
      [:code, :headers, :raw_headers].each do |attr|
        response.respond_to?(attr).should be_true
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
statraptor-0.2.6 spec/statrapator/client/adapters/rest_client_spec.rb
statraptor-0.2.5 spec/statrapator/client/adapters/rest_client_spec.rb
statraptor-0.2.4 spec/statrapator/client/adapters/rest_client_spec.rb
statraptor-0.2.3 spec/statrapator/client/adapters/rest_client_spec.rb
statraptor-0.2.2 spec/statrapator/client/adapters/rest_client_spec.rb
statraptor-0.2.1 spec/statrapator/client/adapters/rest_client_spec.rb