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.
18 lines
394 B
18 lines
394 B
require 'rails_helper'
|
|
|
|
describe 'home/index.html.erb' do
|
|
subject { Nokogiri::HTML(rendered) }
|
|
|
|
before :each do
|
|
assign :districts, [create(:district), create(:district)]
|
|
# assign :schools, [create(:school), create(:school), create(:school)]
|
|
|
|
render
|
|
end
|
|
|
|
it 'renders a dropdown with districts' do
|
|
expect(subject.css('#district-dropdown option').count).to eq 2
|
|
end
|
|
|
|
end
|