sqm-dashboards/spec/views/legacy/recipient_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

28 lines
1,004 B
Ruby

require 'rails_helper'
module Legacy
RSpec.describe 'legacy/recipient_lists/show', type: :view do
before(:each) do
@school = assign(:school, School.create!(name: 'School'))
recipients = ['Jared Cosulich', 'Lauren Cosulich'].collect do |name|
@school.recipients.create!(name: name)
end
@recipient_list = assign(:recipient_list, RecipientList.create!(
name: 'Name',
description: 'MyText',
recipient_id_array: recipients.map(&:id),
school_id: @school.id
))
end
it 'renders attributes in <p>' do
render
expect(rendered).to match(/Name/)
expect(rendered).to match(/MyText/)
expect(rendered).to match(/Jared Cosulich/)
expect(rendered).to match(/Lauren Cosulich/)
end
end
end