spec/client_spec.rb in travis-1.11.1 vs spec/client_spec.rb in travis-1.12.0

- old
+ new

@@ -1,17 +1,19 @@ +# frozen_string_literal: true + require 'spec_helper' describe Travis::Client do - its(:new) { should be_a(Travis::Client::Session) } + its(:new) { is_expected.to be_a(Travis::Client::Session) } it 'accepts string argument' do - Travis::Client.new('http://foo/').uri.should be == 'http://foo/' + described_class.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/' + described_class.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/' + described_class.new(uri: 'http://foo/').uri.should be == 'http://foo/' end end