Sha256: 3e270216a3a0bf2a958394a4543e54017f4d81c1081db5b111485d604e6e89f8

Contents?: true

Size: 525 Bytes

Versions: 35

Compression:

Stored size: 525 Bytes

Contents

require 'spec_helper'

describe CopyTunerClient do

  before do
    allow(CopyTunerClient.configuration).to receive_messages(cache: 'cache', client: 'client')
  end

  it 'delegates cache to the configuration object' do
    expect(CopyTunerClient.configuration).to receive(:cache).once
    expect(CopyTunerClient.cache).to eq('cache')
  end

  it 'delegates client to the configuration object' do
    expect(CopyTunerClient.configuration).to receive(:client).once
    expect(CopyTunerClient.client).to eq('client')
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
copy_tuner_client-0.19.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.18.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.17.1 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.16.3 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.16.2 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.16.1 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.16.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.15.1 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.15.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.14.2 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.14.1 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.14.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.13.6 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.13.5 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.13.3 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.13.2 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.13.1 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.13.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.12.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.11.0 spec/copy_tuner_client_spec.rb