diff options
author | Nick Thomas <nick@gitlab.com> | 2016-10-19 21:33:51 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2016-10-20 14:24:27 +0300 |
commit | 61536ed2cff454bb2e3db8b7ca9ee09cc407461f (patch) | |
tree | 1dd1a551251e81799547b1ad8db1803a2e3db048 /spec/models | |
parent | 6f846fcbe8fa129e240ae58c8d4bbb1e1a82bbef (diff) |
Rename forked_source_project_missing? to source_project_missing?
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/merge_request_spec.rb | 8 |
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 |