Sha256: 5eadcd8ac7072922aeb6b869d41a8eaec6ea143603b503e2538c4e762a8d1f28

Contents?: true

Size: 482 Bytes

Versions: 244

Compression:

Stored size: 482 Bytes

Contents

require 'spec_helper'

describe Travis::Client do
  its(:new) { should be_a(Travis::Client::Session) }

  it 'accepts string argument' do
    Travis::Client.new('http://foo/').uri.should be == 'http://foo/'
  end

  it 'accepts options hash with string keys' do
    Travis::Client.new('uri' => 'http://foo/').uri.should be == 'http://foo/'
  end

  it 'accepts options hash with symbol keys' do
    Travis::Client.new(:uri => 'http://foo/').uri.should be == 'http://foo/'
  end
end

Version data entries

244 entries across 244 versions & 3 rubygems

Version Path
travis-1.7.6.travis.671.5 spec/client_spec.rb
travis-1.7.5 spec/client_spec.rb
travis-1.7.5.travis.658.5 spec/client_spec.rb
travis-1.7.5.travis.656.5 spec/client_spec.rb
travis-1.7.4 spec/client_spec.rb
travis-1.7.4.travis.654.5 spec/client_spec.rb
travis-1.7.3 spec/client_spec.rb
travis-1.7.3.travis.653.5 spec/client_spec.rb
travis-1.7.3.travis.651.5 spec/client_spec.rb
travis-1.7.3.travis.650.5 spec/client_spec.rb
travis-1.7.3.travis.649.5 spec/client_spec.rb
travis-1.7.3.travis.647.5 spec/client_spec.rb
travis-1.7.3.travis.646.5 spec/client_spec.rb
travis-1.7.3.travis.644.5 spec/client_spec.rb
travis-1.7.3.travis.641.5 spec/client_spec.rb
travis-1.7.3.travis.640.5 spec/client_spec.rb
travis-1.7.3.travis.637.5 spec/client_spec.rb
travis-1.7.2 spec/client_spec.rb
travis-1.7.2.travis.636.5 spec/client_spec.rb
travis-1.7.2.travis.635.5 spec/client_spec.rb