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.
29 lines
999 B
29 lines
999 B
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:)
|
|
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
|