mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-11 16:30:35 -07:00
Calculate benchmarks for measures based on a weighted average of survey and admin data items Added architectural records
22 lines
589 B
Ruby
22 lines
589 B
Ruby
require 'rails_helper'
|
|
|
|
module Legacy
|
|
RSpec.describe 'legacy/districts/new', type: :view do
|
|
before(:each) do
|
|
assign(:district, Legacy::District.new(
|
|
name: 'MyString',
|
|
state_id: 1
|
|
))
|
|
end
|
|
|
|
it 'renders new district form' do
|
|
render
|
|
|
|
assert_select 'form[action=?][method=?]', legacy_districts_path, 'post' do
|
|
assert_select 'input#district_name[name=?]', 'district[name]'
|
|
|
|
assert_select 'input#district_state_id[name=?]', 'district[state_id]'
|
|
end
|
|
end
|
|
end
|
|
end
|