Sha256: e2950e2bd9eddcc18d3fa2734050eed7164abeebd7eff1759a744fb6f456f7c9
Contents?: true
Size: 787 Bytes
Versions: 28
Compression:
Stored size: 787 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' module Quby describe 'Age in scores' do it 'can access age in a real score calculation' do answer = Quby.answers.create!('aged_score_interpretations', patient: {"birthyear" => Time.zone.now.year - 18, "gender" => :male}, completed_at: Time.now) outcome = Quby.answers.generate_outcome(answer) expect(outcome.scores).to eq({"tot" => {"label" => "Totaalscore", "value" => 10, "interpretation" => "Laag", "score" => true, "referenced_values" => []}}) end end end
Version data entries
28 entries across 28 versions & 1 rubygems