mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Remove sufficient_data parameter from MeasureGraphRowPresenter
This commit is contained in:
parent
10e70557bd
commit
b4a6ae0bd7
4 changed files with 22 additions and 21 deletions
|
|
@ -16,10 +16,10 @@ describe 'dashboard/index.html.erb' do
|
|||
context 'when there are measures for which, in the given academic year, the school has insufficient responses' do
|
||||
let(:measure_graph_row_presenters) {
|
||||
[
|
||||
MeasureGraphRowPresenter.new(measure: support_for_teaching, score: 0, sufficient_data: false),
|
||||
MeasureGraphRowPresenter.new(measure: create(:measure), score: 0, sufficient_data: true),
|
||||
MeasureGraphRowPresenter.new(measure: effective_leadership, score: 0, sufficient_data: false),
|
||||
MeasureGraphRowPresenter.new(measure: professional_qualifications, score: 0, sufficient_data: false)
|
||||
MeasureGraphRowPresenter.new(measure: support_for_teaching, score: nil),
|
||||
MeasureGraphRowPresenter.new(measure: create(:measure), score: rand),
|
||||
MeasureGraphRowPresenter.new(measure: effective_leadership, score: nil),
|
||||
MeasureGraphRowPresenter.new(measure: professional_qualifications, score: nil)
|
||||
]
|
||||
}
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ describe 'dashboard/index.html.erb' do
|
|||
context 'when there are no measures for which, in the given academic year, the school has insufficient responses' do
|
||||
let(:measure_graph_row_presenters) {
|
||||
[
|
||||
MeasureGraphRowPresenter.new(measure: create(:measure), score: 0, sufficient_data: true)
|
||||
MeasureGraphRowPresenter.new(measure: create(:measure), score: rand)
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue