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.10.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.9.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.8.1 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.8.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.7.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.6.2 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.6.1 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.5.3 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.5.2 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.5.1 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.5.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.5.0.pre spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.12 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.11 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.10 spec/copy_tuner_client_spec.rb