Sha256: 5da5fb01759251e46cc782686a2684381e2ec62cb838dfd37e9a54c17199e326
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
require 'spec_helper' describe Helena::Label do it { expect(subject).to be_embedded_in(:question) } it { expect(subject).to validate_presence_of(:text) } it { expect(subject).to validate_presence_of(:value) } it { expect(subject).to validate_uniqueness_of(:value) } it 'has a valid factory' do expect(build :label).to be_valid end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
helena-1.0.0.rc1 | spec/models/helena/label_spec.rb |
helena-0.3.3 | spec/models/helena/label_spec.rb |