sqm-dashboards/spec/views/schools/show.html.erb_spec.rb
2021-10-15 15:06:00 +02:00

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