diff --git a/tests/core/parser_tests.rb b/tests/core/parser_tests.rb
index 009f1ab14..acc6fa159 100644
--- a/tests/core/parser_tests.rb
+++ b/tests/core/parser_tests.rb
@@ -43,14 +43,35 @@ posuere eu odio. Donec sodales, ante porta condimentum
value3
+}
+
+ @xmlNS = %{
+
+
+ value1
+ value2
+
+ 1
+ 2
+ 3
+
+
+Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+Donec quis metus arcu, quis cursus turpis.
+Aliquam leo lacus, luctus vel iaculis id,
+posuere eu odio. Donec sodales, ante porta condimentum
+
+ value3
+
+
}
@response = {
- 'key1' => 'value1',
- 'key2' => 'value2',
- 'key3' => 'value3',
- 'myArray' => [1,2,3],
- 'longText' => %{
+ 'key1' => 'value1',
+ 'key2' => 'value2',
+ 'key3' => 'value3',
+ 'myArray' => [1,2,3],
+ 'longText' => %{
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec quis metus arcu, quis cursus turpis.
Aliquam leo lacus, luctus vel iaculis id,
@@ -58,10 +79,15 @@ posuere eu odio. Donec sodales, ante porta condimentum
}
}
-
tests('TestParser').returns(@response, "returns the response") do
test_parser = TestParser.new
Nokogiri::XML::SAX::Parser.new(test_parser).parse(@xml)
test_parser.response
end
+
+ tests('TestParser for namespaces').returns(@response, "returns the response") do
+ test_parser = TestParser.new
+ Nokogiri::XML::SAX::Parser.new(test_parser).parse(@xmlNS)
+ test_parser.response
+ end
end