diff options
author | Martins Polakovs <mp@foo.lv> | 2015-05-30 19:15:10 +0300 |
---|---|---|
committer | Martins Polakovs <mp@foo.lv> | 2015-05-30 19:15:10 +0300 |
commit | 6181160504da5e43e9a15c37bdad96741b53a39c (patch) | |
tree | 7e7de27d392f414a0aa12c5e4be7432d251005d7 /spec/lib/gitlab/upgrader_spec.rb | |
parent | cfc9bff45e82f14c2f5a6653c4832f105b0ea365 (diff) |
Update mocking/stubbing syntax to the new RSpec 3 syntax
Diffstat (limited to 'spec/lib/gitlab/upgrader_spec.rb')
-rw-r--r-- | spec/lib/gitlab/upgrader_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/upgrader_spec.rb b/spec/lib/gitlab/upgrader_spec.rb index 8baa1662f38..baa4bd0f28f 100644 --- a/spec/lib/gitlab/upgrader_spec.rb +++ b/spec/lib/gitlab/upgrader_spec.rb @@ -22,7 +22,7 @@ describe Gitlab::Upgrader do end it 'should get the latest version from tags' do - upgrader.stub(fetch_git_tags: [ + allow(upgrader).to receive(:fetch_git_tags).and_return([ '6f0733310546402c15d3ae6128a95052f6c8ea96 refs/tags/v7.1.1', 'facfec4b242ce151af224e20715d58e628aa5e74 refs/tags/v7.1.1^{}', 'f7068d99c79cf79befbd388030c051bb4b5e86d4 refs/tags/v7.10.4', |