mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
Add benchmarks to survey and admin data items. Remove them from measures. Modify seeder
Calculate benchmarks for measures based on a weighted average of survey and admin data items Added architectural records
This commit is contained in:
parent
1a6c81e240
commit
ad03606d66
157 changed files with 2443 additions and 1932 deletions
|
|
@ -4,13 +4,13 @@ describe OverviewController, type: :controller do
|
|||
include BasicAuthHelper
|
||||
let(:school) { create(:school) }
|
||||
let(:district) { create(:district) }
|
||||
let!(:categories) {
|
||||
let!(:categories) do
|
||||
[create(:category, name: 'Second', sort_index: 2), create(:category, name: 'First', sort_index: 1)]
|
||||
}
|
||||
end
|
||||
|
||||
it 'fetches categories sorted by sort_index' do
|
||||
login_as district
|
||||
get :index, params: { school_id: school.to_param, district_id: district.to_param }
|
||||
expect(assigns(:category_presenters).map(&:name)).to eql ['First', 'Second']
|
||||
expect(assigns(:category_presenters).map(&:name)).to eql %w[First Second]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue