diff options
author | Pablo Carranza <pcarranza@gmail.com> | 2016-03-07 12:42:20 +0000 |
---|---|---|
committer | Pablo Carranza <pcarranza@gmail.com> | 2016-03-24 20:48:27 +0000 |
commit | f63e1bfcf508d9ed3c0e60399960f1c1cf21d899 (patch) | |
tree | cf942e8a3ad585192710097f89a4ff238665fd71 /spec/gitlab_net_spec.rb | |
parent | 91e722550b40bbd8214e54a01b2183b27b95bde1 (diff) | |
download | gitlab-shell-f63e1bfcf508d9ed3c0e60399960f1c1cf21d899.tar.gz |
Drop bang in stub method as it is deprecated
Diffstat (limited to 'spec/gitlab_net_spec.rb')
-rw-r--r-- | spec/gitlab_net_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/gitlab_net_spec.rb b/spec/gitlab_net_spec.rb index 2d9b544..9a166b5 100644 --- a/spec/gitlab_net_spec.rb +++ b/spec/gitlab_net_spec.rb @@ -8,8 +8,8 @@ describe GitlabNet, vcr: true do let(:changes) { ['0000000000000000000000000000000000000000 92d0970eefd7acb6d548878925ce2208cfe2d2ec refs/heads/branch4'] } before do - gitlab_net.stub!(:host).and_return('https://dev.gitlab.org/api/v3/internal') - gitlab_net.stub!(:secret_token).and_return('a123') + gitlab_net.stub(:host).and_return('https://dev.gitlab.org/api/v3/internal') + gitlab_net.stub(:secret_token).and_return('a123') end describe :check do @@ -142,7 +142,7 @@ describe GitlabNet, vcr: true do describe :http_client_for do subject { gitlab_net.send :http_client_for, URI('https://localhost/') } before do - gitlab_net.stub! :cert_store + gitlab_net.stub :cert_store gitlab_net.send(:config).stub(:http_settings) { {'self_signed_cert' => true} } end |