Sha256: 9101ef7a4ee976f17b7b777a310aafacc2eb28f9cf09aaad617f1ab6f325fe89
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
require "spec_helper" class ResourceMixinTestClass < ApiClient::Resource::Base include BaseCrm::Resource end describe BaseCrm::Resource do describe "#pass_headers" do let(:instance) { ResourceMixinTestClass.headers(headers).build_one({}) } let(:token_name) { BaseCrm.config.token_name } let(:token) { double } let(:headers) do { token_name => token } end let(:other_klass) { double } it "copies the token header from the original scope" do other_klass.should_receive(:headers).with(token_name => token) instance.pass_headers(other_klass) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
basecrm-0.1.2 | spec/base_crm/resource_mixin_spec.rb |
basecrm-0.1.1 | spec/base_crm/resource_mixin_spec.rb |
basecrm-0.1.0 | spec/base_crm/resource_mixin_spec.rb |