Specs for parsing CSS node test wildcards.

This commit is contained in:
Yorick Peterse 2014-10-05 10:09:21 +02:00
parent 8fef62fca0
commit e1832adc97
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
require 'spec_helper'
describe Oga::CSS::Parser do
context 'wildcards' do
example 'parse a wildcard name test' do
parse_css('*').should == s(:test, nil, '*')
end
example 'parse a wildcard namespace test' do
parse_css('*|foo').should == s(:test, '*', 'foo')
end
example 'parse a wildcard namespace and name test' do
parse_css('*|*').should == s(:test, '*', '*')
end
end
end