Sha256: 979ed5b0d39b0b58a9b88cff14797a9c6ddcdd8414362d71bfa0df1a05345f16

Contents?: true

Size: 245 Bytes

Versions: 5

Compression:

Stored size: 245 Bytes

Contents

require 'rails_helper'

module Cmor::Galleries
  RSpec.describe PictureGallery, type: :model do
    it { expect(subject).to validate_presence_of(:name) }
    it { expect(subject).to validate_uniqueness_of(:name).scoped_to([:locale]) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cmor_galleries-0.0.51.pre spec/models/cmor/galleries/picture_gallery_spec.rb
cmor_galleries-0.0.50.pre spec/models/cmor/galleries/picture_gallery_spec.rb
cmor_galleries-0.0.49.pre spec/models/cmor/galleries/picture_gallery_spec.rb
cmor_galleries-0.0.48.pre spec/models/cmor/galleries/picture_gallery_spec.rb
cmor_galleries-0.0.45.pre spec/models/cmor/galleries/picture_gallery_spec.rb