From a85cd7cbd15b1f28f7e28c168e20ab821268ba29 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Thu, 16 Oct 2014 22:51:55 +0200 Subject: [PATCH] Trimmed CSS class transformer specs a bit. --- spec/oga/css/transformer/classes_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/oga/css/transformer/classes_spec.rb b/spec/oga/css/transformer/classes_spec.rb index 23f45a3..ae4a5d4 100644 --- a/spec/oga/css/transformer/classes_spec.rb +++ b/spec/oga/css/transformer/classes_spec.rb @@ -7,27 +7,27 @@ describe Oga::CSS::Transformer do end example 'convert a class node without a node test' do - @transformer.process(parse_css('.foo')).should == s( + @transformer.process(parse_css('.y')).should == s( :axis, 'child', s( :test, nil, '*', - s(:eq, s(:axis, 'attribute', s(:test, nil, 'class')), s(:string, 'foo')) + s(:eq, s(:axis, 'attribute', s(:test, nil, 'class')), s(:string, 'y')) ) ) end example 'convert a class node with a node test' do - @transformer.process(parse_css('x.foo')).should == s( + @transformer.process(parse_css('x.y')).should == s( :axis, 'child', s( :test, nil, 'x', - s(:eq, s(:axis, 'attribute', s(:test, nil, 'class')), s(:string, 'foo')) + s(:eq, s(:axis, 'attribute', s(:test, nil, 'class')), s(:string, 'y')) ) ) end