Class: TestHtmlLimitationHandler

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
test/test_util/html_parser.rb

Defined Under Namespace

Classes: StubTableHandler

Instance Method Summary (collapse)

Instance Method Details

- (Object) setup



221
222
223
# File 'test/test_util/html_parser.rb', line 221

def setup
  @handler = ODDB::HtmlLimitationHandler.new
end

- (Object) test_feed



224
225
226
227
228
# File 'test/test_util/html_parser.rb', line 224

def test_feed
  th = StubTableHandler.new
  @handler.feed(th)
  assert_equal(th, @handler.rows[0])
end