working on displaying data

This commit is contained in:
Jared Cosulich 2017-03-13 15:17:47 -04:00
parent 8c389742ee
commit 74ff33d74e
11 changed files with 204 additions and 9 deletions

View file

@ -35,7 +35,13 @@ RSpec.describe SchoolCategory, type: :model do
end
end
describe 'sync_responses' do
describe 'answer_index_average' do
it 'should provide the average answer_index for all responses' do
expect(school_category1.answer_index_average).to eq(15.0/4.0)
end
end
describe 'sync_aggregated_responses' do
let!(:category3) { Category.create!(name: 'Category 3', parent_category: category1) }