-
-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathprocessor_spec.rb
More file actions
27 lines (23 loc) · 643 Bytes
/
Copy pathprocessor_spec.rb
File metadata and controls
27 lines (23 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# frozen_string_literal: true
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