sqm-dashboards/spec/views/legacy/schools/edit.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

18 lines
505 B
Ruby

require 'rails_helper'
RSpec.describe 'legacy/schools/edit', type: :view do
before(:each) do
@school = assign(:school, Legacy::School.create!(
name: 'MyString',
district_id: 1
))
end
it 'renders the edit school form' do
render
assert_select 'form[action=?][method=?]', legacy_school_path(@school), 'post' do
assert_select 'input#school_name[name=?]', 'school[name]'
end
end
end