mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
Unify how we sort SQM Categories
This commit is contained in:
parent
934d0bda0e
commit
882fa84de9
8 changed files with 57 additions and 4 deletions
7
spec/support/basic_auth_helper.rb
Normal file
7
spec/support/basic_auth_helper.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
module BasicAuthHelper
|
||||
def login_as(district)
|
||||
user = district.name.downcase
|
||||
pw = "#{district.name.downcase}!"
|
||||
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(user, pw)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue