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