Sha256: ecc25e95b7060045435d59267e935e01a84c2cb5880f4a96824a8d7db3ddc9b9

Contents?: true

Size: 410 Bytes

Versions: 26

Compression:

Stored size: 410 Bytes

Contents

require 'test_helper'
module PagesCms
  class ImageTest < ActiveSupport::TestCase

    def setup
      @image = pages_cms_images(:one)
    end

    test 'image is valid' do
      @image.name = 'no_spaces'
      assert @image.valid?, "Errors: #{@image.errors.full_messages} File:#{@image.file}"
    end

    test 'invalid image' do
      @image.file = 'invalid'
      assert_not @image.valid?
    end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
pages_cms-2.1.1 test/models/pages_cms/image_test.rb
pages_cms-2.1.0 test/models/pages_cms/image_test.rb
pages_cms-2.0.1 test/models/pages_cms/image_test.rb
pages_cms-2.0.0 test/models/pages_cms/image_test.rb
pages_cms-1.2.3 test/models/pages_cms/image_test.rb
pages_cms-1.2.2 test/models/pages_cms/image_test.rb
pages_cms-1.2.1 test/models/pages_cms/image_test.rb
pages_cms-1.2.0 test/models/pages_cms/image_test.rb
pages_cms-1.1.0 test/models/pages_cms/image_test.rb
pages_cms-1.0.8 test/models/pages_cms/image_test.rb
pages_cms-1.0.6 test/models/pages_cms/image_test.rb
pages_cms-1.0.5 test/models/pages_cms/image_test.rb
pages_cms-1.0.4 test/models/pages_cms/image_test.rb
pages_cms-1.0.3 test/models/pages_cms/image_test.rb
pages_cms-1.0.2 test/models/pages_cms/image_test.rb
pages_cms-1.0.1 test/models/pages_cms/image_test.rb
pages_cms-1.0.0 test/models/pages_cms/image_test.rb
pages_cms-0.2.3 test/models/pages_cms/image_test.rb
pages_cms-0.2.2 test/models/pages_cms/image_test.rb
pages_cms-0.2.1 test/models/pages_cms/image_test.rb