diff options
author | Andrew Newdigate <andrew@gitlab.com> | 2017-08-24 12:20:04 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-08-24 12:20:04 +0300 |
commit | fb49c94e49149a2043b774ba33daa3fe79febdd4 (patch) | |
tree | e0f1fd8d5b716baec66287116d0b1529cfdca0bb /spec/models/user_spec.rb | |
parent | 7ab4efa8f8c1c1c0b80684d13bfbb777485f1199 (diff) |
Delegate Repository::branch_exists? and ref_exists? to Gitlab::Git
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r-- | spec/models/user_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 9a9e255f874..8e04eea56a7 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -1356,7 +1356,7 @@ describe User do end it "excludes push event if branch has been deleted" do - allow_any_instance_of(Repository).to receive(:branch_names).and_return(['foo']) + allow_any_instance_of(Repository).to receive(:branch_exists?).with('master').and_return(false) expect(subject.recent_push).to eq(nil) end |