Trimmed CSS class transformer specs a bit.
This commit is contained in:
parent
5fde2f9092
commit
a85cd7cbd1
|
@ -7,27 +7,27 @@ describe Oga::CSS::Transformer do
|
||||||
end
|
end
|
||||||
|
|
||||||
example 'convert a class node without a node test' do
|
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,
|
:axis,
|
||||||
'child',
|
'child',
|
||||||
s(
|
s(
|
||||||
:test,
|
:test,
|
||||||
nil,
|
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
|
end
|
||||||
|
|
||||||
example 'convert a class node with a node test' do
|
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,
|
:axis,
|
||||||
'child',
|
'child',
|
||||||
s(
|
s(
|
||||||
:test,
|
:test,
|
||||||
nil,
|
nil,
|
||||||
'x',
|
'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
|
end
|
||||||
|
|
Loading…
Reference in New Issue