Sha256: 28e89685ccf3011571032f276dc98670d7b2747ab4421ff95bf5b38429c5dff3

Contents?: true

Size: 564 Bytes

Versions: 11

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'

describe CopyTunerClient do

  before do
    CopyTunerClient.configuration.stubs(:cache  => 'cache',
                                         :client => 'client')
  end

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
copy_tuner_client-0.4.9 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.8 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.7 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.6 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.5 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.4 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.3 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.2 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.1 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.4.0 spec/copy_tuner_client_spec.rb
copy_tuner_client-0.3.5 spec/copy_tuner_client_spec.rb