Sha256: e0562cd168a6fcfde1f0540e5066c5b987385db77c0175de9774d1081258c569
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
require 'spec_helper' describe Helena::Version do it { expect(subject).to be_embedded_in(:survey) } it { expect(subject).to embed_many(:question_groups) } it { expect(subject).to embed_one(:survey_detail) } it { expect(subject).to validate_presence_of(:version) } it { expect(subject).to validate_uniqueness_of(:version) } it 'has a valid factory' do expect(build :version, survey: create(:survey)).to be_valid end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
helena-0.3.3 | spec/models/helena/version_spec.rb |