test/parser_test.rb in radius-ts-1.1.0 vs test/parser_test.rb in radius-ts-1.3.0

- old
+ new

@@ -1,6 +1,6 @@ -require File.join(File.dirname(__FILE__), 'test_helper') +require File.expand_path(File.dirname(__FILE__) + '/test_helper') class RadiusParserTest < Test::Unit::TestCase include RadiusTestHelper def setup @@ -259,9 +259,14 @@ parser = Radius::Parser.new(@context) parser.context.globals.foo = '[baz]' assert_equal 'bar', @context.globals.foo end + def test_parse_with_other_namespaces + @parser = Radius::Parser.new(@context, :tag_prefix => 'r') + assert_equal "<fb:test>hello world</fb:test>", @parser.parse("<fb:test>hello world</fb:test>") + end + protected def assert_parse_output(output, input, message = nil) r = @parser.parse(input) assert_equal(output, r, message)