mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
ECP-170 Remove login requirement for Trition. Switch to using predefined passwords stored in the database for district login.
This commit is contained in:
parent
72e38f5ee8
commit
2068758ae4
15 changed files with 146 additions and 16 deletions
|
|
@ -3,7 +3,7 @@ require 'rails_helper'
|
|||
describe CategoriesController, type: :controller do
|
||||
include BasicAuthHelper
|
||||
let(:school) { create(:school) }
|
||||
let(:district) { create(:district) }
|
||||
let(:district) { create(:district, username: 'maynard', password: 'maynard!', login_required: true) }
|
||||
let!(:categories) do
|
||||
[create(:category, name: 'Second', sort_index: 2), create(:category, name: 'First', sort_index: 1)]
|
||||
end
|
||||
|
|
|
|||
|
|
@ -4,11 +4,15 @@ include VarianceHelper
|
|||
describe OverviewController, type: :controller do
|
||||
include BasicAuthHelper
|
||||
let(:school) { create(:school) }
|
||||
let(:district) { create(:district) }
|
||||
let(:district) { create(:district, username: 'maynard', password: 'maynard!', login_required: true) }
|
||||
let!(:categories) do
|
||||
[create(:category, name: 'Second', sort_index: 2), create(:category, name: 'First', sort_index: 1)]
|
||||
end
|
||||
|
||||
before do
|
||||
district
|
||||
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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue