mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
Seed database selectively in tests, not always
This commit is contained in:
parent
dc0139d5c5
commit
934d0bda0e
5 changed files with 25 additions and 10 deletions
|
|
@ -29,6 +29,8 @@ feature 'School dashboard', type: feature do
|
|||
let(:password) { 'winchester!' }
|
||||
|
||||
before :each do
|
||||
Rails.application.load_seed
|
||||
|
||||
survey_item_responses = []
|
||||
|
||||
survey_items_for_measure_1A_i.each do |survey_item|
|
||||
|
|
@ -58,6 +60,10 @@ feature 'School dashboard', type: feature do
|
|||
SurveyItemResponse.import survey_item_responses
|
||||
end
|
||||
|
||||
after :each do
|
||||
DatabaseCleaner.clean
|
||||
end
|
||||
|
||||
scenario 'User authentication fails' do
|
||||
page.driver.browser.basic_authorize('wrong username', 'wrong password')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue