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

Version Path
bearcat-1.5.37 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.36 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.35 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.34 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.33 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.32 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.31 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.30 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.29 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.28 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.28.beta1 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.26 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.24 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.23 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.20 spec/bearcat/stub_bearcat_spec.rb