-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(test) add live feedback history tests
- Loading branch information
Showing
4 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
FactoryBot.define do | ||
factory :course_assessment_live_feedback_code, class: Course::Assessment::LiveFeedbackCode do | ||
feedback { association(:course_assessment_live_feedback) } | ||
filename { 'test_code.rb' } | ||
content { 'puts "Hello, World!"' } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
FactoryBot.define do | ||
factory :course_assessment_live_feedback_comment, class: Course::Assessment::LiveFeedbackComment do | ||
code { association(:course_assessment_live_feedback_code) } | ||
line_number { 1 } | ||
comment { 'This is a test comment' } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
FactoryBot.define do | ||
factory :course_assessment_live_feedback, class: Course::Assessment::LiveFeedback do | ||
assessment | ||
question { association(:course_assessment_question_programming, assessment: assessment) } | ||
creator { association(:course_user, course: assessment.course).user } | ||
end | ||
end |