spec/client_spec.rb in travis-1.6.15.travis.557.6 vs spec/client_spec.rb in travis-1.6.15.travis.558.6

- old
+ new

@@ -1,5 +1,17 @@ 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