Sha256: bb87405794074d356307e6d9d910c74783ac60d0746e79d2ad601f081d9017eb
Contents?: true
Size: 360 Bytes
Versions: 22
Compression:
Stored size: 360 Bytes
Contents
require 'helper' require 'bearcat/spec_helpers' describe Bearcat::SpecHelpers do include Bearcat::SpecHelpers let!(:client) { Bearcat::Client.new(token: SecureRandom.hex) } describe "#stub_bearcat" do it "works as expected" do stub_bearcat(:course).to_return(body: { id: 10 }) expect(client.course(1)[:id]).to eql 10 end end end
Version data entries
22 entries across 22 versions & 1 rubygems