Sha256: 8e6830d5fb7893f6c9301738fe64ddca6487d63a118342876e92ed1f8bde2c33
Contents?: true
Size: 401 Bytes
Versions: 15
Compression:
Stored size: 401 Bytes
Contents
require 'helper' require 'bearcat/spec_helpers' describe Bearcat::SpecHelpers do include Bearcat::SpecHelpers let!(:client) { Bearcat::Client.new(prefix: "http://canvas.instructure.com", 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
15 entries across 15 versions & 1 rubygems