Trimmed CSS class transformer specs a bit.

This commit is contained in:
Yorick Peterse 2014-10-16 22:51:55 +02:00
parent 5fde2f9092
commit a85cd7cbd1
1 changed files with 4 additions and 4 deletions

View File

@ -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