Sha256: 342ac2571a680cdd4235817f48f6c812e6da89e84c474c10b6e702581426817d

Contents?: true

Size: 330 Bytes

Versions: 8

Compression:

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

8 entries across 8 versions & 1 rubygems

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