mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
21 lines
504 B
Ruby
21 lines
504 B
Ruby
require 'rails_helper'
|
|
|
|
RSpec.describe "districts/edit", type: :view do
|
|
before(:each) do
|
|
@district = assign(:district, District.create!(
|
|
:name => "MyString",
|
|
:state_id => 1
|
|
))
|
|
end
|
|
|
|
it "renders the edit district form" do
|
|
render
|
|
|
|
assert_select "form[action=?][method=?]", district_path(@district), "post" do
|
|
|
|
assert_select "input#district_name[name=?]", "district[name]"
|
|
|
|
assert_select "input#district_state_id[name=?]", "district[state_id]"
|
|
end
|
|
end
|
|
end
|