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