mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-13 09:20:38 -07:00
working on displaying data
This commit is contained in:
parent
8c389742ee
commit
74ff33d74e
11 changed files with 204 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue