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.
sqm-dashboards/spec/views/schools/show.html.erb_spec.rb

18 lines
420 B

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