Sha256: 3b690e85f2564bac0dc796da47a71a9eb69dad30a884a7b20ff8aa72d582720a
Contents?: true
Size: 791 Bytes
Versions: 6
Compression:
Stored size: 791 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}, observation_time: 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
6 entries across 6 versions & 1 rubygems