sqm-dashboards/spec/views/legacy/question_lists/show.html.erb_spec.rb
Nelson Jovel ad03606d66 Add benchmarks to survey and admin data items. Remove them from measures. Modify seeder
Calculate benchmarks for measures based on a weighted average of survey
and admin data items

Added architectural records
2021-12-28 14:10:34 +01:00

20 lines
684 B
Ruby

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