mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
24 lines
666 B
Ruby
24 lines
666 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe "question_lists/new", type: :view do
|
|
before(:each) do
|
|
assign(:question_list, QuestionList.new(
|
|
:name => "MyString",
|
|
:description => "MyText",
|
|
:question_ids => "MyText"
|
|
))
|
|
end
|
|
|
|
it "renders new question_list form" do
|
|
render
|
|
|
|
assert_select "form[action=?][method=?]", question_lists_path, "post" do
|
|
|
|
assert_select "input#question_list_name[name=?]", "question_list[name]"
|
|
|
|
assert_select "textarea#question_list_description[name=?]", "question_list[description]"
|
|
|
|
assert_select "textarea#question_list_question_ids[name=?]", "question_list[question_ids]"
|
|
end
|
|
end
|
|
end
|