Sha256: 3c5145db88068e02cd75ac4f82e677c7be8eee0f95d3b2d15790fe85cdbf6c0e

Contents?: true

Size: 341 Bytes

Versions: 9

Compression:

Stored size: 341 Bytes

Contents

require 'rails_helper'

describe AtomicCms::Image do
  it_behaves_like 'media upload'

  context 'file validations' do
    it { should validate_attachment_presence(:file) }
    it 'validates the content types' do
      should validate_attachment_content_type(:file)
        .allowing('image/png', 'image/gif', 'image/jpg')
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
atomic_cms-0.4.0 spec/models/image_spec.rb
atomic_cms-0.3.3 spec/models/image_spec.rb
atomic_cms-0.3.2 spec/models/image_spec.rb
atomic_cms-0.3.1 spec/models/image_spec.rb
atomic_cms-0.3.0 spec/models/image_spec.rb
atomic_cms-0.2.5 spec/models/image_spec.rb
atomic_cms-0.2.3 spec/models/image_spec.rb
atomic_cms-0.2.2 spec/models/image_spec.rb
atomic_cms-0.2.1 spec/models/image_spec.rb