mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-11 16:30:35 -07:00
Calculate benchmarks for measures based on a weighted average of survey and admin data items Added architectural records
28 lines
1,004 B
Ruby
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
|