Sha256: ab85158a420c192629ee19d34bf1583d66be91e8f7129425b2414725f32ccf1f

Contents?: true

Size: 297 Bytes

Versions: 7

Compression:

Stored size: 297 Bytes

Contents

require 'spec_helper'

describe Helena::Label do
  it { expect(subject).to be_embedded_in(:question) }
  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

7 entries across 7 versions & 1 rubygems

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