diff --git a/spec/oga/xml/lexer/elements_spec.rb b/spec/oga/xml/lexer/elements_spec.rb index 9de96e1..1e7e5f4 100644 --- a/spec/oga/xml/lexer/elements_spec.rb +++ b/spec/oga/xml/lexer/elements_spec.rb @@ -63,6 +63,16 @@ describe Oga::XML::Lexer do [:T_ELEM_END, nil, 1] ] end + + example 'lex a paragraph element with single quoted attributes' do + lex("
").should == [ + [:T_ELEM_START, nil, 1], + [:T_ELEM_NAME, 'p', 1], + [:T_ATTR, 'class', 1], + [:T_STRING, 'foo', 1], + [:T_ELEM_END, nil, 1] + ] + end end context 'nested elements' do