mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
22 lines
468 B
Ruby
22 lines
468 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe "districts/index", type: :view do
|
|
before(:each) do
|
|
assign(:districts, [
|
|
District.create!(
|
|
:name => "Name",
|
|
:state_id => 2
|
|
),
|
|
District.create!(
|
|
:name => "Name",
|
|
:state_id => 2
|
|
)
|
|
])
|
|
end
|
|
|
|
it "renders a list of districts" do
|
|
render
|
|
assert_select "tr>td", :text => "Name".to_s, :count => 2
|
|
assert_select "tr>td", :text => 2.to_s, :count => 2
|
|
end
|
|
end
|