mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-10 16:00:33 -07:00
chore: fix failing legacy tests
This commit is contained in:
parent
79bc91d39f
commit
054e5603b7
5 changed files with 24 additions and 30 deletions
|
|
@ -1,23 +1,23 @@
|
|||
require 'rails_helper'
|
||||
require "rails_helper"
|
||||
|
||||
module Legacy
|
||||
RSpec.describe 'legacy/recipient_lists/show', type: :view do
|
||||
RSpec.describe "legacy/recipient_lists/show", type: :view do
|
||||
before(:each) do
|
||||
@school = assign(:school, School.create!(name: 'School'))
|
||||
@school = assign(:school, Legacy::School.create!(name: "School"))
|
||||
|
||||
recipients = ['Jared Cosulich', 'Lauren Cosulich'].collect do |name|
|
||||
recipients = ["Jared Cosulich", "Lauren Cosulich"].collect do |name|
|
||||
@school.recipients.create!(name:)
|
||||
end
|
||||
|
||||
@recipient_list = assign(:recipient_list, RecipientList.create!(
|
||||
name: 'Name',
|
||||
description: 'MyText',
|
||||
name: "Name",
|
||||
description: "MyText",
|
||||
recipient_id_array: recipients.map(&:id),
|
||||
school_id: @school.id
|
||||
))
|
||||
end
|
||||
|
||||
it 'renders attributes in <p>' do
|
||||
it "renders attributes in <p>" do
|
||||
render
|
||||
expect(rendered).to match(/Name/)
|
||||
expect(rendered).to match(/MyText/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue