You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
684 B
21 lines
684 B
require 'rails_helper'
|
|
|
|
module Legacy
|
|
RSpec.describe 'legacy/question_lists/show', type: :view do
|
|
before(:each) do
|
|
@question_list = assign(:question_list, QuestionList.create!(
|
|
name: 'Name',
|
|
description: 'MyText',
|
|
question_ids: 'MyText'
|
|
))
|
|
end
|
|
|
|
it 'renders attributes in <p>' do
|
|
render(template: 'legacy/question_lists/show')
|
|
expect(rendered).to match(/Name/)
|
|
expect(rendered).to match(/MyText/)
|
|
expect(rendered).to match(/MyText/)
|
|
end
|
|
end
|
|
end
|