mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-10 16:00:33 -07:00
16 lines
430 B
Ruby
16 lines
430 B
Ruby
require 'rails_helper'
|
|
|
|
describe 'home/index.html.erb' do
|
|
subject { Nokogiri::HTML(rendered) }
|
|
|
|
before :each do
|
|
assign :districts, [create(:district), create(:district)]
|
|
assign :categories, [CategoryPresenter.new(category: create(:sqm_category))]
|
|
render
|
|
end
|
|
|
|
it 'renders a dropdown with districts and a select a district prompt' do
|
|
expect(subject.css('#district-dropdown option').count).to eq 3
|
|
end
|
|
|
|
end
|