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.
23 lines
469 B
23 lines
469 B
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
|
|
|
|
xit "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
|