mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Revert "fix: Makes visible the graphs by grade"
This reverts commit 5fc83ac31b.
This commit is contained in:
parent
5fc83ac31b
commit
59a7dd2e77
3 changed files with 6 additions and 5 deletions
|
|
@ -6,9 +6,9 @@ module Analyze
|
|||
include Analyze::Graph::Column::Grade
|
||||
attr_reader :grades
|
||||
|
||||
# def initialize(grades:)
|
||||
# @grades = grades
|
||||
# end
|
||||
def initialize(grades:)
|
||||
@grades = grades
|
||||
end
|
||||
|
||||
def to_s
|
||||
"Students by Grade"
|
||||
|
|
@ -52,3 +52,4 @@ module Analyze
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ module Analyze
|
|||
@graphs ||= [Analyze::Graph::AllData.new,
|
||||
Analyze::Graph::StudentsAndTeachers.new,
|
||||
Analyze::Graph::StudentsByRace.new(races: selected_races),
|
||||
Analyze::Graph::StudentsByGrade.new,
|
||||
Analyze::Graph::StudentsByGrade.new(grades: selected_grades),
|
||||
Analyze::Graph::StudentsByGender.new(genders: selected_genders),
|
||||
Analyze::Graph::StudentsByIncome.new(incomes: selected_incomes),
|
||||
Analyze::Graph::StudentsByEll.new(ells: selected_ells),
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ describe Analyze::Presenter do
|
|||
|
||||
params = { graph: "students-by-grade" }
|
||||
presenter = Analyze::Presenter.new(params:, school:, academic_year:)
|
||||
expect(presenter.graph.to_s).to eq Analyze::Graph::StudentsByGrade.new.to_s
|
||||
expect(presenter.graph.to_s).to eq Analyze::Graph::StudentsByGrade.new(grades: nil).to_s
|
||||
|
||||
params = { graph: "students-by-gender" }
|
||||
presenter = Analyze::Presenter.new(params:, school:, academic_year:)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue