mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 21:38:14 -08:00
dirty commit: can't get references to work correctly between any tables
This commit is contained in:
parent
e1f0b78236
commit
a4fddbeced
183 changed files with 5461 additions and 5 deletions
5
spec/factories/dashboard/academic_years.rb
Normal file
5
spec/factories/dashboard/academic_years.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
FactoryBot.define do
|
||||
factory :academic_year do
|
||||
range { "MyString" }
|
||||
end
|
||||
end
|
||||
12
spec/factories/dashboard/admin_data_items.rb
Normal file
12
spec/factories/dashboard/admin_data_items.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
FactoryBot.define do
|
||||
factory :admin_data_item do
|
||||
admin_data_item_id { "MyString" }
|
||||
description { "MyString" }
|
||||
watch_low_benchmark { 1.5 }
|
||||
growth_low_benchmark { 1.5 }
|
||||
approval_low_benchmark { 1.5 }
|
||||
ideal_low_benchmark { 1.5 }
|
||||
hs_only_item { false }
|
||||
dashboard_scale { nil }
|
||||
end
|
||||
end
|
||||
8
spec/factories/dashboard/admin_data_values.rb
Normal file
8
spec/factories/dashboard/admin_data_values.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
FactoryBot.define do
|
||||
factory :admin_data_value do
|
||||
likert_score { 1.5 }
|
||||
dashboard_school { nil }
|
||||
dashboard_admin_data_item { nil }
|
||||
dashboard_academic_year { nil }
|
||||
end
|
||||
end
|
||||
9
spec/factories/dashboard/categories.rb
Normal file
9
spec/factories/dashboard/categories.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FactoryBot.define do
|
||||
factory :category do
|
||||
name { "MyString" }
|
||||
description { "MyText" }
|
||||
slug { "MyString" }
|
||||
category_id { "MyString" }
|
||||
short_description { "MyString" }
|
||||
end
|
||||
end
|
||||
7
spec/factories/dashboard/districts.rb
Normal file
7
spec/factories/dashboard/districts.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
FactoryBot.define do
|
||||
factory :district do
|
||||
name { "MyString" }
|
||||
slug { "MyString" }
|
||||
qualtrics_code { 1 }
|
||||
end
|
||||
end
|
||||
6
spec/factories/dashboard/ells.rb
Normal file
6
spec/factories/dashboard/ells.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :ell do
|
||||
designation { "MyString" }
|
||||
slug { "MyString" }
|
||||
end
|
||||
end
|
||||
6
spec/factories/dashboard/genders.rb
Normal file
6
spec/factories/dashboard/genders.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :gender do
|
||||
qualtrics_code { 1 }
|
||||
designation { "MyString" }
|
||||
end
|
||||
end
|
||||
6
spec/factories/dashboard/incomes.rb
Normal file
6
spec/factories/dashboard/incomes.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :income do
|
||||
designation { "MyString" }
|
||||
slug { "MyString" }
|
||||
end
|
||||
end
|
||||
8
spec/factories/dashboard/measures.rb
Normal file
8
spec/factories/dashboard/measures.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
FactoryBot.define do
|
||||
factory :measure do
|
||||
measure_id { "MyString" }
|
||||
name { "MyString" }
|
||||
dashboard_subcategory { nil }
|
||||
description { "MyText" }
|
||||
end
|
||||
end
|
||||
7
spec/factories/dashboard/races.rb
Normal file
7
spec/factories/dashboard/races.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
FactoryBot.define do
|
||||
factory :race do
|
||||
designation { "MyString" }
|
||||
qualtrics_code { 1 }
|
||||
slug { "MyString" }
|
||||
end
|
||||
end
|
||||
22
spec/factories/dashboard/respondents.rb
Normal file
22
spec/factories/dashboard/respondents.rb
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
FactoryBot.define do
|
||||
factory :respondent do
|
||||
dashboard_school { nil }
|
||||
dashboard_academic_year { nil }
|
||||
total_students { 1 }
|
||||
total_teachers { 1.5 }
|
||||
pk { 1 }
|
||||
k { 1 }
|
||||
one { 1 }
|
||||
two { 1 }
|
||||
three { 1 }
|
||||
four { 1 }
|
||||
five { 1 }
|
||||
six { 1 }
|
||||
seven { 1 }
|
||||
eight { 1 }
|
||||
nine { 1 }
|
||||
ten { 1 }
|
||||
eleven { 1 }
|
||||
twelve { 1 }
|
||||
end
|
||||
end
|
||||
9
spec/factories/dashboard/response_rates.rb
Normal file
9
spec/factories/dashboard/response_rates.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FactoryBot.define do
|
||||
factory :response_rate do
|
||||
subcategory { nil }
|
||||
school { nil }
|
||||
academic_year { nil }
|
||||
school_response_rate { 1.5 }
|
||||
teacher_response_rate { 1.5 }
|
||||
end
|
||||
end
|
||||
6
spec/factories/dashboard/scales.rb
Normal file
6
spec/factories/dashboard/scales.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :scale do
|
||||
scale_id { "MyString" }
|
||||
measure { nil }
|
||||
end
|
||||
end
|
||||
11
spec/factories/dashboard/schools.rb
Normal file
11
spec/factories/dashboard/schools.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FactoryBot.define do
|
||||
factory :school do
|
||||
name { "MyString" }
|
||||
dashboard_district { nil }
|
||||
description { "MyText" }
|
||||
slug { "MyString" }
|
||||
qualtrics_code { 1 }
|
||||
dese_id { 1 }
|
||||
is_hs { false }
|
||||
end
|
||||
end
|
||||
8
spec/factories/dashboard/scores.rb
Normal file
8
spec/factories/dashboard/scores.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
FactoryBot.define do
|
||||
factory :score do
|
||||
average { 1.5 }
|
||||
meets_teacher_threshold { false }
|
||||
meets_student_threshold { false }
|
||||
meets_admin_data_threshold { false }
|
||||
end
|
||||
end
|
||||
6
spec/factories/dashboard/speds.rb
Normal file
6
spec/factories/dashboard/speds.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :sped do
|
||||
designation { "MyString" }
|
||||
slug { "MyString" }
|
||||
end
|
||||
end
|
||||
6
spec/factories/dashboard/student_races.rb
Normal file
6
spec/factories/dashboard/student_races.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :student_race do
|
||||
dashboard_student { nil }
|
||||
dashboard_race { nil }
|
||||
end
|
||||
end
|
||||
6
spec/factories/dashboard/students.rb
Normal file
6
spec/factories/dashboard/students.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
FactoryBot.define do
|
||||
factory :student do
|
||||
lasid { "MyString" }
|
||||
response_id { "MyString" }
|
||||
end
|
||||
end
|
||||
8
spec/factories/dashboard/subcategories.rb
Normal file
8
spec/factories/dashboard/subcategories.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
FactoryBot.define do
|
||||
factory :subcategory do
|
||||
name { "MyString" }
|
||||
description { "MyText" }
|
||||
subcategory_id { "MyString" }
|
||||
dashboard_categories { nil }
|
||||
end
|
||||
end
|
||||
16
spec/factories/dashboard/survey_item_responses.rb
Normal file
16
spec/factories/dashboard/survey_item_responses.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
FactoryBot.define do
|
||||
factory :survey_item_response do
|
||||
likert_score { 1 }
|
||||
dashboard_school { nil }
|
||||
dashboard_survey_item { nil }
|
||||
dashboard_academic_year { nil }
|
||||
dashboard_student { nil }
|
||||
dashboard_gender { nil }
|
||||
dashboard_income { nil }
|
||||
dashboard_ell { nil }
|
||||
dashboard_sped { nil }
|
||||
response_id { "MyString" }
|
||||
grade { 1 }
|
||||
recorded_date { "2024-01-04 11:21:28" }
|
||||
end
|
||||
end
|
||||
12
spec/factories/dashboard/survey_items.rb
Normal file
12
spec/factories/dashboard/survey_items.rb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
FactoryBot.define do
|
||||
factory :survey_item do
|
||||
survey_item_id { "MyString" }
|
||||
prompt { "MyString" }
|
||||
watch_low_benchmark { 1.5 }
|
||||
growth_low_benchmark { 1.5 }
|
||||
approval_low_benchmark { 1.5 }
|
||||
ideal_low_benchmark { 1.5 }
|
||||
dashboard_scale { nil }
|
||||
on_short_form { false }
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue