mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
parent
340bdad831
commit
000bb52e1d
16 changed files with 239 additions and 191 deletions
|
|
@ -5,10 +5,10 @@ describe 'browse/show.html.erb' do
|
|||
academic_year = create(:academic_year, range: '1989-90')
|
||||
school = create(:school, name: 'Best School')
|
||||
|
||||
category = create(:sqm_category, name: 'Some Category')
|
||||
category = create(:sqm_category, name: 'Some Category', description: 'Some description of the category')
|
||||
|
||||
subcategory1 = create(:subcategory, sqm_category: category, name: 'A subcategory')
|
||||
subcategory2 = create(:subcategory_with_measures, sqm_category: category, name: 'Another subcategory')
|
||||
subcategory1 = create(:subcategory, sqm_category: category, name: 'A subcategory', description: 'Some description of the subcategory')
|
||||
subcategory2 = create(:subcategory_with_measures, sqm_category: category, name: 'Another subcategory', description: 'Another description of the subcategory')
|
||||
|
||||
measure1 = create(:measure, subcategory: subcategory1, watch_low_benchmark: 1.5, growth_low_benchmark: 2.5, approval_low_benchmark: 3.5, ideal_low_benchmark: 4.5)
|
||||
|
||||
|
|
@ -21,8 +21,9 @@ describe 'browse/show.html.erb' do
|
|||
render
|
||||
end
|
||||
|
||||
it 'renders the category name' do
|
||||
it 'renders the category name and description' do
|
||||
expect(rendered).to match /Some Category/
|
||||
expect(rendered).to match /Some description of the category/
|
||||
end
|
||||
|
||||
context 'for each subcategory' do
|
||||
|
|
@ -31,6 +32,11 @@ describe 'browse/show.html.erb' do
|
|||
expect(rendered).to match /Another subcategory/
|
||||
end
|
||||
|
||||
it 'renders the subcategory description' do
|
||||
expect(rendered).to match /Some description of the subcategory/
|
||||
expect(rendered).to match /Another description of the subcategory/
|
||||
end
|
||||
|
||||
it 'renders the zone title and fill color for the gauge graph' do
|
||||
expect(rendered).to match /Growth/
|
||||
expect(rendered).to match /fill-growth/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue