Sha256: c7f645c242e3877b981ce395d72df2e4399c762159e8fa16504709c24e62fcab

Contents?: true

Size: 440 Bytes

Versions: 16

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe Lcms::Engine::SocialThumbnail do
  it 'has valid factory' do
    expect(build :social_thumbnail).to be_valid
  end

  context 'cannot be created' do
    it 'without target' do
      expect(build :social_thumbnail, target: nil).to_not be_valid
    end

    it 'without valid media type' do
      expect(build :social_thumbnail, media: 'fake').to_not be_valid
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lcms-engine-0.5.5 spec/models/social_thumbnail_spec.rb
lcms-engine-0.5.4 spec/models/social_thumbnail_spec.rb
lcms-engine-0.5.3 spec/models/social_thumbnail_spec.rb
lcms-engine-0.5.2 spec/models/social_thumbnail_spec.rb
lcms-engine-0.5.1 spec/models/social_thumbnail_spec.rb
lcms-engine-0.5.0 spec/models/social_thumbnail_spec.rb
lcms-engine-0.4.2 spec/models/social_thumbnail_spec.rb
lcms-engine-0.4.1 spec/models/social_thumbnail_spec.rb
lcms-engine-0.4.0 spec/models/social_thumbnail_spec.rb
lcms-engine-0.3.1 spec/models/social_thumbnail_spec.rb
lcms-engine-0.1.4 spec/models/social_thumbnail_spec.rb
lcms-engine-0.3.0 spec/models/social_thumbnail_spec.rb
lcms-engine-0.1.3 spec/models/social_thumbnail_spec.rb
lcms-engine-0.2.0 spec/models/social_thumbnail_spec.rb
lcms-engine-0.1.2 spec/models/social_thumbnail_spec.rb
lcms-engine-0.1.0 spec/models/social_thumbnail_spec.rb