Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-08-10 01:41:07 +0300
committerStan Hu <stanhu@gmail.com>2019-08-10 01:41:07 +0300
commitafe867921cab046a34bc463840c6e9f5d51f1f70 (patch)
treedae8e191eb1ba98217f277cb1326297ee84df82b /spec/lib
parentd96c24d81590dd6da237f131d4c074b70e64e030 (diff)
Rename branches_exist? -> includes_branches?
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/git_post_receive_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/git_post_receive_spec.rb b/spec/lib/gitlab/git_post_receive_spec.rb
index f4a10d8d984..1911e954df9 100644
--- a/spec/lib/gitlab/git_post_receive_spec.rb
+++ b/spec/lib/gitlab/git_post_receive_spec.rb
@@ -7,7 +7,7 @@ describe ::Gitlab::GitPostReceive do
subject { described_class.new(project, "project-#{project.id}", changes.dup, {}) }
- describe '#branches_exist?' do
+ describe '#includes_branches?' do
context 'with no branches' do
let(:changes) do
<<~EOF
@@ -18,7 +18,7 @@ describe ::Gitlab::GitPostReceive do
end
it 'returns false' do
- expect(subject.branches_exist?).to be_falsey
+ expect(subject.includes_branches?).to be_falsey
end
end
@@ -32,7 +32,7 @@ describe ::Gitlab::GitPostReceive do
end
it 'returns true' do
- expect(subject.branches_exist?).to be_truthy
+ expect(subject.includes_branches?).to be_truthy
end
end
@@ -45,7 +45,7 @@ describe ::Gitlab::GitPostReceive do
end
it 'returns false' do
- expect(subject.branches_exist?).to be_falsey
+ expect(subject.includes_branches?).to be_falsey
end
end
end