merged/test/models/card_style_test.rb
2022-12-23 14:41:59 +02:00

20 lines
407 B
Ruby

require "test_helper"
module Merged
class PageTest < ActiveSupport::TestCase
def first_card
CardStyle.all.first
end
def test_has_all
assert_equal CardStyle.all.length , 5
end
def test_has_fields
assert_equal first_card.fields.class , Array
assert_equal first_card.fields.length , 2
assert_equal first_card.fields.first , "header"
end
end
end