Sha256: 9381091623586af235378d29a168dd252b44be77b78f4b75e682fbcd77a981b1

Contents?: true

Size: 812 Bytes

Versions: 116

Compression:

Stored size: 812 Bytes

Contents

require 'test_helper'

class MyParser < MLS::Parser; end

class TestParser < ::Test::Unit::TestCase

  def test_attr_readers
    parser = MyParser.new

    assert parser.respond_to?(:object)
  end

  def test_instance_methods
    parser = MyParser.new

    assert parser.respond_to?(:parse)
    assert parser.respond_to?(:update_attributes)
    assert parser.respond_to?(:extract_attributes)
  end

  def test_class_methods
    assert MyParser.respond_to?(:parse)
    assert MyParser.respond_to?(:parse_collection)
    assert MyParser.respond_to?(:build)
    assert MyParser.respond_to?(:update)
    assert MyParser.respond_to?(:extract_attributes)
    assert MyParser.respond_to?(:object_class)
    assert MyParser.respond_to?(:root_element)
    assert MyParser.respond_to?(:collection_root_element)
  end

end

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
mls-1.1.3 test/units/test_parser.rb
mls-1.1.2 test/units/test_parser.rb
mls-1.1.1 test/units/test_parser.rb
mls-1.1.0 test/units/test_parser.rb
mls-1.0.0 test/units/test_parser.rb
mls-0.14.0 test/units/test_parser.rb
mls-0.13.0 test/units/test_parser.rb
mls-0.12.5 test/units/test_parser.rb
mls-0.12.4 test/units/test_parser.rb
mls-0.12.2 test/units/test_parser.rb
mls-0.12.3 test/units/test_parser.rb
mls-0.12.1 test/units/test_parser.rb
mls-0.11.3 test/units/test_parser.rb
mls-0.11.2 test/units/test_parser.rb
mls-0.11.1 test/units/test_parser.rb
mls-0.11.0 test/units/test_parser.rb
mls-0.9.9 test/units/test_parser.rb
mls-0.9.8 test/units/test_parser.rb
mls-0.9.6 test/units/test_parser.rb
mls-0.9.5 test/units/test_parser.rb