Skip to content

Commit

Permalink
test: Fix NameError: uninitialized constant REXML::Parsers::PullParser (
Browse files Browse the repository at this point in the history
#222)

This commit fixes the following NameError when running only specific
test file test/parse/test_character_reference.rb.

```
$ ruby test/parse/test_character_reference.rb -v
Loaded suite test/parse/test_character_reference
Started
REXMLTests::TestParseCharacterReference:
  test_hex_precedding_zero:           E
===========================================================================================
Error: test_hex_precedding_zero(REXMLTests::TestParseCharacterReference): NameError: uninitialized constant REXML::Parsers::PullParser
test/parse/test_character_reference.rb:18:in 'REXMLTests::TestParseCharacterReference#test_hex_precedding_zero'
===========================================================================================
: (0.001470)
  test_linear_performance_many_preceding_zeros:       .: (0.033970)

Finished in 0.036068018 seconds.
-------------------------------------------------------------------------------------------
2 tests, 15 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
50% passed
-------------------------------------------------------------------------------------------
55.45 tests/s, 415.88 assertions/s
```
  • Loading branch information
junaruga authored Nov 28, 2024
1 parent 963ccdf commit 46dd810
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parse/test_character_reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require "core_assertions"

require "rexml/document"
require "rexml/parsers/pullparser"

module REXMLTests
class TestParseCharacterReference < Test::Unit::TestCase
Expand Down

0 comments on commit 46dd810

Please sign in to comment.