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.
|
require 'rails_helper'
|
|
|
|
RSpec.describe "schools/show", type: :view do
|
|
before(:each) do
|
|
@school = assign(:school, School.create!(
|
|
:name => "Name",
|
|
:district_id => 2
|
|
))
|
|
end
|
|
|
|
it "renders attributes in <p>" do
|
|
render
|
|
expect(rendered).to match(/Name/)
|
|
expect(rendered).to match(/2/)
|
|
end
|
|
end
|