flatten test model dir

This commit is contained in:
2022-12-23 14:41:59 +02:00
parent ab43a2ed0a
commit 8653362bf1
11 changed files with 0 additions and 0 deletions

28
test/models/image_test.rb Normal file
View File

@ -0,0 +1,28 @@
require "test_helper"
module Merged
class ImageTest < ActiveSupport::TestCase
def first
Image.first
end
def test_has_all
assert_equal Image.all.length , 17
end
def test_has_image
assert_equal first.class , Image
end
def test_has_name
assert_equal first.name , "Common spaces"
end
def test_has_height_and_width
assert_equal first.height , 300
assert_equal first.width , 560
end
def test_aspect
assert_equal first.aspect_ratio , [13,7]
end
end
end