Sha256: 3f0327935f7cb50d9fa68336d40e172529d79b8648769e250bd2701305c25561

Contents?: true

Size: 765 Bytes

Versions: 2

Compression:

Stored size: 765 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

module Quby::Questionnaires::Entities
  describe Flag do
    let(:flag) do
      # the flag key is prefixed in lib/quby/questionnaires/entities/questionnaire.rb:232, unless internal
      described_class.new(key: :questkey_flagkey,
                          internal: false,
                          description: 'test flag',
                          description_true: 'flag is true',
                          description_false: 'flag is false',
                          trigger_on: true,
                          shows_questions: [],
                          hides_questions: [],
                          depends_on: :other_flag,
                          default_in_interface: false)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
quby-5.6.3 spec/quby/questionnaires/entities/flag_spec.rb
quby-5.6.2 spec/quby/questionnaires/entities/flag_spec.rb