Commit 8a6bf09a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Pass project into factory for teams tests

parent f536c133
......@@ -132,7 +132,7 @@ class Userteams < Spinach::FeatureSteps
team = UserTeam.last
team.projects.each do |project|
team.members.each do |member|
3.times { project.merge_requests << create(:merge_request, assignee: member) }
3.times { create(:merge_request, assignee: member, project: project) }
end
end
end
......@@ -157,7 +157,7 @@ class Userteams < Spinach::FeatureSteps
team = UserTeam.last
team.projects.each do |project|
team.members.each do |member|
3.times { project.merge_requests << create(:merge_request, assignee: member) }
3.times { create(:merge_request, assignee: member, project: project) }
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