Commit cee68dec authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix api merge request specs

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent c227aa44
...@@ -80,8 +80,8 @@ describe API::API do ...@@ -80,8 +80,8 @@ describe API::API do
context 'forked projects' do context 'forked projects' do
let!(:user2) {create(:user)} let!(:user2) {create(:user)}
let!(:forked_project_link) { build(:forked_project_link) } let!(:forked_project_link) { build(:forked_project_link) }
let!(:fork_project) { create(:source_project, forked_project_link: forked_project_link, namespace: user2.namespace, creator_id: user2.id) } let!(:fork_project) { create(:project, forked_project_link: forked_project_link, namespace: user2.namespace, creator_id: user2.id) }
let!(:unrelated_project) { create(:target_project, namespace: user2.namespace, creator_id: user2.id) } let!(:unrelated_project) { create(:project, namespace: create(:user).namespace, creator_id: user2.id) }
before :each do |each| before :each do |each|
fork_project.team << [user2, :reporters] fork_project.team << [user2, :reporters]
...@@ -198,5 +198,4 @@ describe API::API do ...@@ -198,5 +198,4 @@ describe API::API do
response.status.should == 404 response.status.should == 404
end end
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