Sha256: 10db959822e57d710a8f1de1ff4e8c9e9f6b358210c64f079e665591fafa0665

Contents?: true

Size: 599 Bytes

Versions: 10

Compression:

Stored size: 599 Bytes

Contents

RSpec.describe Percy::Client do
  describe '#config' do
    it 'returns the config object given when initialized' do
      config = Percy::Config.new
      client = Percy::Client.new(config: config)
      expect(client.config).to eq(config)
      expect(client.config.keys).to eq([
        :access_token,
        :api_url,
        :debug,
        :repo,
      ])
      expect(client.config.access_token).to be_nil
      expect(client.config.api_url).to eq(ENV['PERCY_API'])
      expect(client.config.debug).to eq(false)
      expect(client.config.repo).to eq('percy/percy-client')
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
percy-client-1.3.0 spec/lib/percy/client_spec.rb
percy-client-1.2.0 spec/lib/percy/client_spec.rb
percy-client-1.1.0 spec/lib/percy/client_spec.rb
percy-client-1.0.0 spec/lib/percy/client_spec.rb
percy-client-0.11.0 spec/lib/percy/client_spec.rb
percy-client-0.10.0 spec/lib/percy/client_spec.rb
percy-client-0.9.0 spec/lib/percy/client_spec.rb
percy-client-0.8.0 spec/lib/percy/client_spec.rb
percy-client-0.7.0 spec/lib/percy/client_spec.rb
percy-client-0.6.0 spec/lib/percy/client_spec.rb