Sha256: 65a82cd6846930f545f4b46a01d2c88535ac13904b9fc6f60388b144fdbd3476

Contents?: true

Size: 536 Bytes

Versions: 22

Compression:

Stored size: 536 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,
        :repo,
      ])
      expect(client.config.access_token).to be_nil
      expect(client.config.api_url).to eq(ENV['PERCY_API'])
      expect(client.config.repo).to eq('percy/percy-client')
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
percy-client-0.5.0 spec/lib/percy/client_spec.rb
percy-client-0.4.1 spec/lib/percy/client_spec.rb
percy-client-0.4.0 spec/lib/percy/client_spec.rb
percy-client-0.3.2 spec/lib/percy/client_spec.rb
percy-client-0.3.1 spec/lib/percy/client_spec.rb
percy-client-0.3.0 spec/lib/percy/client_spec.rb
percy-client-0.2.11 spec/lib/percy/client_spec.rb
percy-client-0.2.10 spec/lib/percy/client_spec.rb
percy-client-0.2.9 spec/lib/percy/client_spec.rb
percy-client-0.2.8 spec/lib/percy/client_spec.rb
percy-client-0.2.7 spec/lib/percy/client_spec.rb
percy-client-0.2.6 spec/lib/percy/client_spec.rb
percy-client-0.2.5 spec/lib/percy/client_spec.rb
percy-client-0.2.4 spec/lib/percy/client_spec.rb
percy-client-0.2.3 spec/lib/percy/client_spec.rb
percy-client-0.2.2 spec/lib/percy/client_spec.rb
percy-client-0.2.1 spec/lib/percy/client_spec.rb
percy-client-0.2.0 spec/lib/percy/client_spec.rb
percy-client-0.1.6 spec/lib/percy/client_spec.rb
percy-client-0.1.5 spec/lib/percy/client_spec.rb