Sha256: a3c5fedbd932f5ae634234dc1c432374b5b3b7b8e572aaabb183dcc7bd813854
Contents?: true
Size: 613 Bytes
Versions: 4
Compression:
Stored size: 613 Bytes
Contents
require 'test/test_helper' class TestDeprecation < ActiveSupport::TestCase def test_as_array_not_deprecated assert_not_deprecated do opts = ROXML::Definition.new(:name, :as => []) assert_equal :text, opts.sought_type assert opts.array? end end def test_as_hash_not_deprecated assert_not_deprecated do opts = ROXML::Definition.new(:name, :as => {:key => '@dt', :value => '@dd'}) assert opts.hash? end end def test_as_object_with_from_xml_not_deprecated assert_not_deprecated do ROXML::Definition.new(:name, :as => OctalInteger) end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
yob-roxml-3.1.6 | test/unit/deprecations_test.rb |
roxml-3.1.5 | test/unit/deprecations_test.rb |
roxml-3.1.4 | test/unit/deprecations_test.rb |
roxml-3.1.3 | test/unit/deprecations_test.rb |