Sha256: 59ebb8b530ea4d38cf4189375d91f88882d28cd43eab363604335b7d9f3ff17d

Contents?: true

Size: 516 Bytes

Versions: 8

Compression:

Stored size: 516 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

8 entries across 8 versions & 1 rubygems

Version Path
helena-1.1.0 spec/models/helena/questions/checkbox_group_spec.rb
helena-1.0.3 spec/models/helena/questions/checkbox_group_spec.rb
helena-1.0.2 spec/models/helena/questions/checkbox_group_spec.rb
helena-1.0.1 spec/models/helena/questions/checkbox_group_spec.rb
helena-1.0.0.rc4 spec/models/helena/questions/checkbox_group_spec.rb
helena-1.0.0.rc3 spec/models/helena/questions/checkbox_group_spec.rb
helena-1.0.0.rc2 spec/models/helena/questions/checkbox_group_spec.rb
helena-1.0.0.rc1 spec/models/helena/questions/checkbox_group_spec.rb