stylesheet 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stylesheet/css_style_sheet.rb +1 -0
- data/lib/stylesheet/version.rb +1 -1
- data/spec/css_style_sheet_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb5d18ee1118e1d272c96ec33ecc6b3a2fc834a3b1c922a3505f1efbabedabaa
|
4
|
+
data.tar.gz: b5825b6322c79a693a8c182cf2915c888abfe5ebbf526831b443832cbc9b7979
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d283ae915974d1238de25e13f99c15668f38783d1b21f2bdd6d2927ef0c0cbe3f6d6a0b29019975b6dd3624e9ceacbc149e29cf45568df32b493ab5a4c641d5
|
7
|
+
data.tar.gz: 10460aeec21ea54e9b01e6793d715b402d9f9b1e69d19e54933e405d4b5c5a3afc283a46ece2e0d6cdaf56b31282adf4d9fe887fd86f42a44fb8f20c3c4e7fb8
|
data/lib/stylesheet/version.rb
CHANGED
@@ -137,6 +137,14 @@ describe CssStyleSheet do
|
|
137
137
|
}.not_to raise_error
|
138
138
|
end
|
139
139
|
|
140
|
+
it "doesn't fetch for nil inline styles" do
|
141
|
+
sheet = CssStyleSheet.new(content: nil)
|
142
|
+
|
143
|
+
expect {
|
144
|
+
sheet.css_rules.map {|r| r.content }
|
145
|
+
}.not_to raise_error
|
146
|
+
end
|
147
|
+
|
140
148
|
end
|
141
149
|
|
142
150
|
describe "#css_rules" do
|