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

Version Path
bearcat-1.5.19 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.17 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.16 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.15 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.14 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.13 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.12 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.11 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.10 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.9 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.8 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.7 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.6 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.5 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.4 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.3 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.2 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.0 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.0.beta4 spec/bearcat/stub_bearcat_spec.rb
bearcat-1.5.0.beta3 spec/bearcat/stub_bearcat_spec.rb