spec/components_spec.rb in inky-rb-1.3.7.5 vs spec/components_spec.rb in inky-rb-1.3.8.0
- old
+ new
@@ -257,11 +257,11 @@
input = '<spacer size="10"></spacer>'
expected = <<-HTML
<table class="spacer">
<tbody>
<tr>
- <td height="10px" style="font-size:10px;line-height:10px;"> </td>
+ <td height="10" style="font-size:10px;line-height:10px;"> </td>
</tr>
</tbody>
</table>
HTML
@@ -272,11 +272,11 @@
input = '<spacer size-sm="10"></spacer>'
expected = <<-HTML
<table class="spacer hide-for-large">
<tbody>
<tr>
- <td height="10px" style="font-size:10px;line-height:10px;"> </td>
+ <td height="10" style="font-size:10px;line-height:10px;"> </td>
</tr>
</tbody>
</table>
HTML
@@ -287,11 +287,11 @@
input = '<spacer size-lg="20"></spacer>'
expected = <<-HTML
<table class="spacer show-for-large">
<tbody>
<tr>
- <td height="20px" style="font-size:20px;line-height:20px;"> </td>
+ <td height="20" style="font-size:20px;line-height:20px;"> </td>
</tr>
</tbody>
</table>
HTML
@@ -302,18 +302,18 @@
input = '<spacer size-sm="10" size-lg="20"></spacer>'
expected = <<-HTML
<table class="spacer hide-for-large">
<tbody>
<tr>
- <td height="10px" style="font-size:10px;line-height:10px;"> </td>
+ <td height="10" style="font-size:10px;line-height:10px;"> </td>
</tr>
</tbody>
</table>
<table class="spacer show-for-large">
<tbody>
<tr>
- <td height="20px" style="font-size:20px;line-height:20px;"> </td>
+ <td height="20" style="font-size:20px;line-height:20px;"> </td>
</tr>
</tbody>
</table>
HTML
@@ -324,10 +324,10 @@
input = '<spacer size="10" class="bgcolor"></spacer>'
expected = <<-HTML
<table class="spacer bgcolor">
<tbody>
<tr>
- <td height="10px" style="font-size:10px;line-height:10px;"> </td>
+ <td height="10" style="font-size:10px;line-height:10px;"> </td>
</tr>
</tbody>
</table>
HTML