2022-12-23 14:40:05 +02:00
|
|
|
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
|
2023-01-01 14:33:12 +02:00
|
|
|
assert OptionDefinition.all.length > 20
|
2022-12-23 14:40:05 +02:00
|
|
|
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
|