Sha256: 4771e9f7f5dc66fa68f4407c8ff69bfed405aed808bdab6a7b311fb270d38847

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

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