Sha256: bb7b8023d129520a6ff868278404b7e42db8ea8c5f59317f52dae52ea0c3055f

Contents?: true

Size: 312 Bytes

Versions: 7

Compression:

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

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pages_cms-2.4.2 test/models/pages_cms/image_test.rb
pages_cms-2.3.2 test/models/pages_cms/image_test.rb
pages_cms-2.3.1 test/models/pages_cms/image_test.rb
pages_cms-2.3.0 test/models/pages_cms/image_test.rb
pages_cms-2.2.3 test/models/pages_cms/image_test.rb
pages_cms-2.2.2 test/models/pages_cms/image_test.rb
pages_cms-2.2.1 test/models/pages_cms/image_test.rb