mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 23:48:17 -07:00
Calculate benchmarks for measures based on a weighted average of survey and admin data items Added architectural records
25 lines
901 B
Ruby
25 lines
901 B
Ruby
require 'rails_helper'
|
|
|
|
module Legacy
|
|
RSpec.describe 'legacy/question_lists/edit', type: :view do
|
|
before(:each) do
|
|
@question_list = assign(:question_list, QuestionList.create!(
|
|
name: 'MyString',
|
|
description: 'MyText',
|
|
question_ids: 'MyText'
|
|
))
|
|
end
|
|
|
|
it 'renders the edit question_list form' do
|
|
render
|
|
|
|
assert_select 'form[action=?][method=?]', legacy_question_list_path(@question_list), 'post' do
|
|
assert_select 'input#question_list_name[name=?]', 'question_list[name]'
|
|
|
|
assert_select 'textarea#question_list_description[name=?]', 'question_list[description]'
|
|
|
|
assert_select 'input[name=?]', 'question_list[question_id_array][]'
|
|
end
|
|
end
|
|
end
|
|
end
|