spec/bearcat/stub_bearcat_spec.rb in bearcat-1.5.19 vs spec/bearcat/stub_bearcat_spec.rb in bearcat-1.5.20
- old
+ new
@@ -2,10 +2,10 @@
require 'bearcat/spec_helpers'
describe Bearcat::SpecHelpers do
include Bearcat::SpecHelpers
- let!(:client) { Bearcat::Client.new(token: SecureRandom.hex) }
+ 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