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

Version Path
quby-5.5.0 spec/features/age_calculation_spec.rb
quby-5.4.0 spec/features/age_calculation_spec.rb
quby-5.3.1 spec/features/age_calculation_spec.rb
quby-5.3.0 spec/features/age_calculation_spec.rb
quby-5.2.0 spec/features/age_calculation_spec.rb
quby-5.1.3 spec/features/age_calculation_spec.rb
quby-5.1.2 spec/features/age_calculation_spec.rb
quby-5.1.1 spec/features/age_calculation_spec.rb
quby-5.1.0 spec/features/age_calculation_spec.rb
quby-5.0.5 spec/features/age_calculation_spec.rb
quby-5.0.4 spec/features/age_calculation_spec.rb
quby-5.0.3 spec/features/age_calculation_spec.rb
quby-5.0.2 spec/features/age_calculation_spec.rb
quby-5.0.1 spec/features/age_calculation_spec.rb
quby-5.0.0 spec/features/age_calculation_spec.rb
quby-4.0.4 spec/features/age_calculation_spec.rb
quby-5.0.0.pre4 spec/features/age_calculation_spec.rb
quby-5.0.0.pre3 spec/features/age_calculation_spec.rb
quby-5.0.0.pre2 spec/features/age_calculation_spec.rb
quby-5.0.0.pre1 spec/features/age_calculation_spec.rb