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