Sha256: 118e6f316cf799c6d32e1d955da4e273bb311b93857a701d4c9e6f8215bb9202
Contents?: true
Size: 606 Bytes
Versions: 4
Compression:
Stored size: 606 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.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 |
---|---|
roxml-3.1.2 | test/unit/deprecations_test.rb |
roxml-3.1.1 | test/unit/deprecations_test.rb |
roxml-3.1.0 | test/unit/deprecations_test.rb |
ROXML-3.0.0 | test/unit/deprecations_test.rb |