spec/spec_helper.rb in inky-rb-1.3.7.5 vs spec/spec_helper.rb in inky-rb-1.3.8.0
- old
+ new
@@ -15,9 +15,12 @@
.gsub(/(align="[^"]+") (class="[^"]+")/, '\2 \1') # Tweak order to match inky-node on container
.gsub(/class\="([^"]+)"/) do # Sort class names
classes = $1.split(' ').sort.join(' ')
%{class="#{classes}"}
end
+ .gsub(/<td height=".+?px"/) do |m| # Tweak out px until https://github.com/zurb/inky/pull/106 resolved
+ m.gsub('px', '')
+ end
end
def expect_same_html(input, expected)
expect(reformat_html(input)).to eql(reformat_html(expected))
end