Sha256: f44ef5e994ae0d08ffe6387d8f0581ebcd4a5399c37639ac9d42629040606dfa

Contents?: true

Size: 359 Bytes

Versions: 41

Compression:

Stored size: 359 Bytes

Contents

require 'mechanize/test_case'

class TestMechanizeSubclass < Mechanize::TestCase

  class Parent < Mechanize
    @html_parser = :parser
    @log = :log
  end

  class Child < Parent
  end

  def test_subclass_inherits_html_parser
    assert_equal :parser, Child.html_parser
  end

  def test_subclass_inherits_log
    assert_equal :log, Child.log
  end

end

Version data entries

41 entries across 41 versions & 5 rubygems

Version Path
mechanize-2.10.0 test/test_mechanize_subclass.rb
mechanize-2.9.2 test/test_mechanize_subclass.rb
mechanize-2.9.1 test/test_mechanize_subclass.rb
mechanize-2.9.0 test/test_mechanize_subclass.rb
mechanize-2.8.5 test/test_mechanize_subclass.rb
mechanize-2.8.4 test/test_mechanize_subclass.rb
mechanize-2.8.3 test/test_mechanize_subclass.rb
mechanize-2.8.2 test/test_mechanize_subclass.rb
mechanize-2.8.1 test/test_mechanize_subclass.rb
mechanize-2.8.0 test/test_mechanize_subclass.rb
mechanize-2.7.7 test/test_mechanize_subclass.rb
husc-0.2.1 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_subclass.rb
husc-0.2.0 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_subclass.rb
husc-0.1.1 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_subclass.rb
husc-0.1.0 vendor/bundle/gems/mechanize-2.7.6/test/test_mechanize_subclass.rb
mechanize-2.7.6 test/test_mechanize_subclass.rb
mechanize-2.7.5 test/test_mechanize_subclass.rb
mechanize-2.7.4 test/test_mechanize_subclass.rb
mechanize-2.7.3 test/test_mechanize_subclass.rb
mechanize-2.7.2 test/test_mechanize_subclass.rb