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

Version Path
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
spiral_form-0.1.1 vendor/bundle/gems/crass-1.0.4/test/test_crass.rb
spiral_form-0.1.0 vendor/bundle/gems/crass-1.0.4/test/test_crass.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/crass-1.0.4/test/test_crass.rb
crass-1.0.4 test/test_crass.rb
crass-1.0.3 test/test_crass.rb
crass-1.0.2 test/test_crass.rb
crass-1.0.1 test/test_crass.rb
crass-1.0.0 test/test_crass.rb
crass-0.2.1 test/test_crass.rb
crass-0.2.0 test/test_crass.rb
crass-0.1.0 test/test_crass.rb