Sha256: 1a9b93d7d422895a2ac2446575224145faff63f0721c481fc3d54364fd957987

Contents?: true

Size: 517 Bytes

Versions: 6

Compression:

Stored size: 517 Bytes

Contents

require 'spec_helper'

describe Helena::Questions::CheckboxGroup do
  let!(:version) { build :version, survey: build(:survey) }

  let(:question_group) { build :question_group, version: version }

  it 'has a valid factory' do
    expect(build(:checkbox_group_question, question_group: question_group)).to be_valid
  end

  it 'indicates that it includes sub_questions' do
    question = build :checkbox_group_question, question_group: question_group

    expect(question.includes_subquestions?).to eq true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
helena-2.1.0 spec/models/helena/questions/checkbox_group_spec.rb
helena-2.0.2 spec/models/helena/questions/checkbox_group_spec.rb
helena-2.0.1 spec/models/helena/questions/checkbox_group_spec.rb
helena-2.0.0 spec/models/helena/questions/checkbox_group_spec.rb
helena-1.3.1 spec/models/helena/questions/checkbox_group_spec.rb
helena-1.3.0 spec/models/helena/questions/checkbox_group_spec.rb