Sha256: cad2598619ee455926da06c19efc50eb74ba2b3efe3c67fc032c285f0eeb9fdb

Contents?: true

Size: 331 Bytes

Versions: 6

Compression:

Stored size: 331 Bytes

Contents

require 'spec_helper'

describe Helena::QuestionGroup do
  let!(:version) { create :version, survey: create(:survey) }

  it { expect(subject).to have_many(:questions).with_dependent(:destroy) }
  it { expect(subject).to belong_to(:version) }

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

Version data entries

6 entries across 6 versions & 1 rubygems

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