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.8.14.travis.1178.9 spec/client_spec.rb
travis-1.8.14.travis.1175.9 spec/client_spec.rb
travis-1.8.14.travis.1172.9 spec/client_spec.rb
travis-1.8.14.travis.1164.9 spec/client_spec.rb
travis-1.8.14.travis.1163.9 spec/client_spec.rb
travis-1.8.14.travis.1162.9 spec/client_spec.rb
travis-1.8.14.travis.1160.9 spec/client_spec.rb
travis-1.8.13 spec/client_spec.rb
travis-1.8.14.travis.1156.9 spec/client_spec.rb
travis-1.8.14.travis.1155.9 spec/client_spec.rb
travis-1.8.13.travis.1152.9 spec/client_spec.rb
travis-1.8.13.travis.1148.9 spec/client_spec.rb
travis-1.8.12 spec/client_spec.rb
travis-1.8.13.travis.1141.9 spec/client_spec.rb
travis-1.8.12.travis.1136.9 spec/client_spec.rb
travis-1.8.12.travis.1135.9 spec/client_spec.rb
travis-1.8.12.travis.1125.9 spec/client_spec.rb
travis-1.8.12.pre.rc1 spec/client_spec.rb
travis-1.8.12.travis.1116.9 spec/client_spec.rb
travis-1.8.12.travis.1111.9 spec/client_spec.rb