Sha256: 2828634000b11d539d47eebdb901a7de92ac61eb54bca5c711178bef1f902100

Contents?: true

Size: 642 Bytes

Versions: 3

Compression:

Stored size: 642 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', '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

3 entries across 3 versions & 2 rubygems

Version Path
Empact-roxml-2.5.2 test/unit/deprecations_test.rb
Empact-roxml-2.5.3 test/unit/deprecations_test.rb
doxo-roxml-2.5.3 test/unit/deprecations_test.rb