Sha256: 66632b4c4f1be64157506e0aed25a6e08e3039d61c88a895a3e23c39aa931ad4

Contents?: true

Size: 622 Bytes

Versions: 7

Compression:

Stored size: 622 Bytes

Contents

require_relative './../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

7 entries across 7 versions & 2 rubygems

Version Path
roxml-3.3.1 test/unit/deprecations_test.rb
roxml-3.3.0 test/unit/deprecations_test.rb
roxml-3.2.2 test/unit/deprecations_test.rb
roxml-3.2.1 test/unit/deprecations_test.rb
roxml-3.2.0 test/unit/deprecations_test.rb
representable-0.0.1.alpha1 test/unit/deprecations_test.rb
roxml-3.1.6 test/unit/deprecations_test.rb