Sha256: 3ac54b8d27ea3cb0e96ce8c6f5df3c9f13031f20d238ab23dcc708c174279f8f
Contents?: true
Size: 864 Bytes
Versions: 20
Compression:
Stored size: 864 Bytes
Contents
# encoding: utf-8 require_relative 'support/common' describe 'Crass' do make_my_diffs_pretty! parallelize_me! it 'parse_properties() should call Crass::Parser.parse_properties' do assert_equal( CP.parse_properties("a:b; c:d 42!important;\n"), Crass.parse_properties("a:b; c:d 42!important;\n") ) assert_equal( CP.parse_properties(";; /**/ ; ;", :preserve_comments => true), Crass.parse_properties(";; /**/ ; ;", :preserve_comments => true) ) end it 'parse() should call Crass::Parser.parse_stylesheet' do assert_equal( CP.parse_stylesheet(" /**/ .foo {} #bar {}"), Crass.parse(" /**/ .foo {} #bar {}") ) assert_equal( CP.parse_stylesheet(" /**/ .foo {} #bar {}", :preserve_comments => true), Crass.parse(" /**/ .foo {} #bar {}", :preserve_comments => true) ) end end
Version data entries
20 entries across 20 versions & 3 rubygems