sqm-dashboards/spec/views/legacy/districts/new.html.erb_spec.rb
Nelson Jovel ad03606d66 Add benchmarks to survey and admin data items. Remove them from measures. Modify seeder
Calculate benchmarks for measures based on a weighted average of survey
and admin data items

Added architectural records
2021-12-28 14:10:34 +01:00

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