sqm-dashboards/spec/views/legacy/districts/index.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
508 B
Ruby

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