Sha256: 1d7987cd244192c57a57b56c22c03e283e067efc7db95838ae03aee9d649eb1a

Contents?: true

Size: 450 Bytes

Versions: 11

Compression:

Stored size: 450 Bytes

Contents

require "spec_helper"

class TestClientTester
  include Rapidash::TestClient
end

describe Rapidash::HTTPClient do

  let!(:responses) { 
    {
      :get => {
        "foo" => "response"
      }
    } 
  }

  let!(:subject) { TestClientTester.new(:responses => responses) }

  describe ".request" do
    it "should do something" do
      Rapidash::Response.should_receive(:new).with("response")
      subject.request(:get, "foo")
    end
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rapidash-0.2.2 spec/rapidash/test_client_spec.rb
rapidash-0.2.1 spec/rapidash/test_client_spec.rb
rapidash-0.2.0 spec/rapidash/test_client_spec.rb
rapidash-0.1.2 spec/rapidash/test_client_spec.rb
rapidash-0.1.1 spec/rapidash/test_client_spec.rb
rapidash-0.1.0 spec/rapidash/test_client_spec.rb
rapidash-0.0.6 spec/rapidash/test_client_spec.rb
rapidash-0.0.5 spec/rapidash/test_client_spec.rb
rapidash-0.0.4 spec/rapidash/test_client_spec.rb
rapidash-0.0.3 spec/rapidash/test_client_spec.rb
rapidash-0.0.2 spec/rapidash/test_client_spec.rb