mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Calculate benchmarks for measures based on a weighted average of survey and admin data items Added architectural records
12 lines
348 B
Ruby
12 lines
348 B
Ruby
require 'rails_helper'
|
|
|
|
describe HomeController, type: :controller do
|
|
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
|
|
get :index
|
|
expect(assigns(:categories).map(&:name)).to eql %w[First Second]
|
|
end
|
|
end
|