Pass project into factory for teams tests

This commit is contained in:
Dmitriy Zaporozhets 2013-04-01 20:35:41 +03:00
parent f536c13355
commit 8a6bf09ad0

View file

@ -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