diff --git a/spec/oga/css/parser/axes_spec.rb b/spec/oga/css/parser/axes_spec.rb index 6b66b91..dd84b55 100644 --- a/spec/oga/css/parser/axes_spec.rb +++ b/spec/oga/css/parser/axes_spec.rb @@ -28,6 +28,12 @@ describe Oga::CSS::Parser do ) end + it 'parses the + axis with an identifier only at the right-hand side' do + parse_css('+ y').should == parse_xpath( + 'following-sibling::*[1]/self::y' + ) + end + it 'parses the + axis called on another + axis' do parse_css('a + b + c').should == parse_xpath( 'descendant::a/following-sibling::*[1]/self::b/' \