summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2016-10-19 19:33:51 +0100
committerNick Thomas <nick@gitlab.com>2016-10-20 12:24:27 +0100
commit61536ed2cff454bb2e3db8b7ca9ee09cc407461f (patch)
tree1dd1a551251e81799547b1ad8db1803a2e3db048 /spec
parent6f846fcbe8fa129e240ae58c8d4bbb1e1a82bbef (diff)
downloadgitlab-ce-61536ed2cff454bb2e3db8b7ca9ee09cc407461f.tar.gz
Rename forked_source_project_missing? to source_project_missing?
Diffstat (limited to 'spec')
-rw-r--r--spec/models/merge_request_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/merge_request_spec.rb b/spec/models/merge_request_spec.rb
index ee003a9d18f..6e5137602aa 100644
--- a/spec/models/merge_request_spec.rb
+++ b/spec/models/merge_request_spec.rb
@@ -1198,7 +1198,7 @@ describe MergeRequest, models: true do
end
end
- describe "#forked_source_project_missing?" do
+ describe "#source_project_missing?" do
let(:project) { create(:project) }
let(:fork_project) { create(:project, forked_from_project: project) }
let(:user) { create(:user) }
@@ -1211,13 +1211,13 @@ describe MergeRequest, models: true do
target_project: project)
end
- it { expect(merge_request.forked_source_project_missing?).to be_falsey }
+ it { expect(merge_request.source_project_missing?).to be_falsey }
end
context "when the source project is the same as the target project" do
let(:merge_request) { create(:merge_request, source_project: project) }
- it { expect(merge_request.forked_source_project_missing?).to be_falsey }
+ it { expect(merge_request.source_project_missing?).to be_falsey }
end
context "when the fork does not exist" do
@@ -1231,7 +1231,7 @@ describe MergeRequest, models: true do
unlink_project.execute
merge_request.reload
- expect(merge_request.forked_source_project_missing?).to be_truthy
+ expect(merge_request.source_project_missing?).to be_truthy
end
end
end