Pass project into factory for teams tests
This commit is contained in:
parent
f536c13355
commit
8a6bf09ad0
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue