working on aggregated results

This commit is contained in:
Jared Cosulich 2017-03-12 21:04:40 -04:00
parent f5b473ed28
commit 48eb55ad94
11 changed files with 120 additions and 8 deletions

View file

@ -5,9 +5,11 @@ RSpec.describe AttemptsController, type: :controller do
let(:valid_session) { {} }
let(:schedule) { Schedule.new }
let(:recipient) { Recipient.create(name: 'Recipient', phone: '+11231231234') }
let(:school) { School.create!(name: 'School') }
let(:recipient) { Recipient.create!(name: 'Recipient', phone: '+11231231234') }
let(:recipient_schedule) { RecipientSchedule.new }
let(:question) { Question.new }
let(:category) { Category.create!(name: 'Category') }
let(:question) { create_questions(1, category).first }
let!(:first_attempt) {
Attempt.create(
schedule: schedule,