working on displaying data

This commit is contained in:
Jared Cosulich 2017-03-13 15:17:47 -04:00
parent 8c389742ee
commit 74ff33d74e
11 changed files with 204 additions and 9 deletions

View file

@ -2,15 +2,16 @@ require 'rails_helper'
RSpec.describe "schools/show", type: :view do
before(:each) do
@school_categories = []
@school = assign(:school, School.create!(
:name => "Name",
:district_id => 2
:name => "School",
:district => District.create(name: 'District')
))
end
it "renders attributes in <p>" do
render
expect(rendered).to match(/Name/)
expect(rendered).to match(/2/)
expect(rendered).to match(/School/)
expect(rendered).to match(/District/)
end
end