-
Notifications
You must be signed in to change notification settings - Fork 82
/
test_case_results.rb
37 lines (35 loc) · 1.18 KB
/
test_case_results.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# == Schema Information
#
# Table name: test_case_results
#
# id :integer not null, primary key
# execution_feedback :text(65535)
# feedback_line_no :integer
# pass :boolean not null
# created_at :datetime
# updated_at :datetime
# coding_prompt_answer_id :integer
# test_case_id :integer not null
# user_id :integer not null
#
# Indexes
#
# index_test_case_results_on_coding_prompt_answer_id (coding_prompt_answer_id)
# index_test_case_results_on_test_case_id (test_case_id)
# index_test_case_results_on_user_id (user_id)
#
# Foreign Keys
#
# test_case_results_coding_prompt_answer_id_fk (coding_prompt_answer_id => coding_prompt_answers.id)
# test_case_results_test_case_id_fk (test_case_id => test_cases.id)
# test_case_results_user_id_fk (user_id => users.id)
#
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :test_case_result do
test_case_id { 1 }
user_id { 1 }
score { "" }
execution_feedback { "MyText" }
end
end