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.11.1 spec/client_spec.rb
travis-1.11.0 spec/client_spec.rb
travis-1.10.1.travis.1341.9 spec/client_spec.rb
travis-1.10.1.travis.1321.9 spec/client_spec.rb
travis-1.10.1.travis.1312.9 spec/client_spec.rb
travis-1.10.1.travis.1311.9 spec/client_spec.rb
travis-1.10.1.travis.1305.9 spec/client_spec.rb
travis-1.10.0 spec/client_spec.rb
travis-1.9.2.travis.1304.9 spec/client_spec.rb
travis-1.9.2.travis.1303.9 spec/client_spec.rb
travis-1.10.0.pre.rc4 spec/client_spec.rb
travis-1.10.0.pre.rc3 spec/client_spec.rb
travis-1.10.0.pre.rc2 spec/client_spec.rb
travis-1.9.2.travis.1288.9 spec/client_spec.rb
travis-1.9.2.travis.1285.9 spec/client_spec.rb
travis-1.9.2.travis.1279.9 spec/client_spec.rb
travis-1.10.0.pre.rc1 spec/client_spec.rb
travis-1.9.2.travis.1254.9 spec/client_spec.rb
travis-1.9.2.travis.1236.9 spec/client_spec.rb
travis-1.9.2.travis.1224.9 spec/client_spec.rb