Commit e013cd44 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix mr specs

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 4cde3593
...@@ -73,14 +73,13 @@ describe MergeRequest do ...@@ -73,14 +73,13 @@ describe MergeRequest do
describe '#for_fork?' do describe '#for_fork?' do
it 'returns true if the merge request is for a fork' do it 'returns true if the merge request is for a fork' do
subject.source_project = create(:source_project) subject.source_project = create(:project, namespace: create(:group))
subject.target_project = create(:target_project) subject.target_project = create(:project, namespace: create(:group))
subject.for_fork?.should be_true subject.for_fork?.should be_true
end end
it 'returns false if is not for a fork' do it 'returns false if is not for a fork' do
subject.source_project = create(:source_project)
subject.target_project = subject.source_project
subject.for_fork?.should be_false subject.for_fork?.should be_false
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment