spec/support/have_styling_matcher.rb in roadie-3.0.5 vs spec/support/have_styling_matcher.rb in roadie-3.1.0.rc1
- old
+ new
@@ -29,9 +29,10 @@
def initialize(styling)
case styling
when String then @rules = parse_rules(styling)
when Array then @rules = styling
when Hash then @rules = styling.to_a
+ when nil then @rules = []
else fail "I don't understand #{styling.inspect}!"
end
end
def ==(other)