merged/test/models/option_definition_test.rb

24 lines
512 B
Ruby
Raw Normal View History

require "test_helper"
module Merged
class OptionDefinitionTest < ActiveSupport::TestCase
def first
OptionDefinition.first
end
def test_has_first
assert_equal OptionDefinition.first.class , OptionDefinition
end
def test_there_options
2022-12-28 17:33:46 +01:00
assert_equal OptionDefinition.all.length , 20
end
def test_has_option_objects
assert_equal first.class , OptionDefinition
end
def test_has_values
assert_equal first.values.class , Array
end
end
end