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.
20 lines
552 B
20 lines
552 B
require 'rails_helper'
|
|
|
|
module Legacy
|
|
RSpec.describe 'legacy/schools/show', type: :view do
|
|
before(:each) do
|
|
@school_categories = []
|
|
@school = assign(:school, School.create!(
|
|
name: 'School',
|
|
district: District.create(name: 'District')
|
|
))
|
|
end
|
|
|
|
it 'renders attributes in <p>' do
|
|
render(template: 'legacy/schools/show')
|
|
expect(rendered).to match(/School/)
|
|
expect(rendered).to match(/District/)
|
|
end
|
|
end
|
|
end
|