Rename Student column to AllStudent so there isn't a naming clash with

the Student model.
pull/1/head
rebuilt 3 years ago
parent 93486eb132
commit ff14bad102

@ -13,7 +13,7 @@ module Analyze
end end
def columns def columns
[Student, Teacher, GroupedBarColumnPresenter] [AllStudent, AllTeacher, GroupedBarColumnPresenter]
end end
end end
end end

@ -17,7 +17,7 @@ module Analyze
Analyze::Graph::Column::MiddleEastern, Analyze::Graph::Column::MiddleEastern,
Analyze::Graph::Column::Unknown, Analyze::Graph::Column::Unknown,
Analyze::Graph::Column::White, Analyze::Graph::Column::White,
Analyze::Graph::Column::Student] Analyze::Graph::Column::AllStudent]
end end
end end
end end

@ -3,7 +3,7 @@
module Analyze module Analyze
module Graph module Graph
module Column module Column
class Student < GroupedBarColumnPresenter class AllStudent < GroupedBarColumnPresenter
def label def label
'All Students' 'All Students'
end end

@ -3,7 +3,7 @@
module Analyze module Analyze
module Graph module Graph
module Column module Column
class Teacher < GroupedBarColumnPresenter class AllTeacher < GroupedBarColumnPresenter
def label def label
'All Teachers' 'All Teachers'
end end

@ -63,12 +63,12 @@ describe GroupedBarColumnPresenter do
end end
let(:student_presenter) do let(:student_presenter) do
Analyze::Graph::Column::Student.new measure: measure_with_student_survey_items, school:, academic_years:, Analyze::Graph::Column::AllStudent.new measure: measure_with_student_survey_items, school:, academic_years:,
position: 0, number_of_columns: 3 position: 0, number_of_columns: 3
end end
let(:teacher_presenter) do let(:teacher_presenter) do
Analyze::Graph::Column::Teacher.new measure: measure_with_teacher_survey_items, school:, academic_years:, Analyze::Graph::Column::AllTeacher.new measure: measure_with_teacher_survey_items, school:, academic_years:,
position: 0, number_of_columns: 3 position: 0, number_of_columns: 3
end end

Loading…
Cancel
Save