Skip to content

Commit cb35d7e

Browse files
author
Scott Adams
committed
fix lesson factory to include nested project with same user_id
1 parent 874ef29 commit cb35d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/factories/lesson.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
sequence(:name) { |n| "Lesson #{n}" }
77
description { 'Description' }
88
visibility { 'teachers' }
9-
project { create(:project) }
9+
project { create(:project, user_id: user_id) }
1010
end
1111
end

0 commit comments

Comments
 (0)