mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
17 lines
420 B
Ruby
17 lines
420 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe "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: "schools/show")
|
|
expect(rendered).to match(/School/)
|
|
expect(rendered).to match(/District/)
|
|
end
|
|
end
|