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