Sha256: 379bd5d6ef3e65e6359104428cee9e08690256247ef6618a6308ffe1c8e777c2

Contents?: true

Size: 616 Bytes

Versions: 50

Compression:

Stored size: 616 Bytes

Contents

require_relative "spec_helper"

describe AutoprefixerRails::Processor do
  it "parses config" do
    config    = "# Comment\n ie 11\n \nie 8 # sorry\n[test ]\nios 8"
    processor = AutoprefixerRails::Processor.new
    expect(processor.parse_config(config)).to eql({
      "defaults" => ["ie 11", "ie 8"],
      "test" => ["ios 8"],
    })
  end

  context "without Rails" do
    before do
      hide_const("Rails")
    end

    it "doesn't raise error during processing" do
      processor = AutoprefixerRails::Processor.new
      expect {
        processor.process("")
      }.not_to raise_error
    end
  end
end

Version data entries

50 entries across 35 versions & 2 rubygems

Version Path
autoprefixer-rails-9.8.6 spec/processor_spec.rb
autoprefixer-rails-9.8.5 spec/processor_spec.rb
autoprefixer-rails-9.8.4 spec/processor_spec.rb
autoprefixer-rails-9.8.3 spec/processor_spec.rb
autoprefixer-rails-9.8.2 spec/processor_spec.rb
autoprefixer-rails-9.8.1 spec/processor_spec.rb
autoprefixer-rails-9.7.6 spec/processor_spec.rb
autoprefixer-rails-9.7.5 spec/processor_spec.rb
autoprefixer-rails-9.7.4 spec/processor_spec.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/processor_spec.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.7.3/spec/processor_spec.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.4/spec/processor_spec.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.5/spec/processor_spec.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1/spec/processor_spec.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.7.1/spec/processor_spec.rb
autoprefixer-rails-9.7.3 spec/processor_spec.rb
autoprefixer-rails-9.7.2 spec/processor_spec.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/processor_spec.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1/spec/processor_spec.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.4/spec/processor_spec.rb