Sha256: a99ef48818119cd00ffcb5212a90236ace813b9875a47989f8e0399aadaaece3
Contents?: true
Size: 575 Bytes
Versions: 5
Compression:
Stored size: 575 Bytes
Contents
require "spec_helper" class TesterClient include Rapidash::TestClient end describe Rapidash::TestClient do let(:responses) do { :get => { "foo" => "bar" } } end let(:client) { TesterClient.new(responses) } describe ".new" do let(:stubs) { client.stubs } it "should create Faraday test stubs" do expect(stubs).to be_a Faraday::Adapter::Test::Stubs end end describe "#request" do let(:response) { client.request(:get, '/foo') } it "should respond with the correct data" do expect(response).to eq 'bar' end end end
Version data entries
5 entries across 5 versions & 1 rubygems