spec/mastalk_spec.rb in mastalk-0.3.1 vs spec/mastalk_spec.rb in mastalk-0.3.2
- old
+ new
@@ -116,9 +116,21 @@
it 'pre-processes correctly' do
expect(subject.to_html).to eq(expected)
end
end
+ context 'bullets inside table' do
+ let(:source) { "|table|header|\n|$bullet [%] yes [/%] $point|here|" }
+
+ let(:expected) do
+ "<table>\n <tbody>\n <tr>\n <td>table</td>\n <td>header</td>\n </tr>\n <tr>\n <td><ul><li>yes</li></ul></td>\n <td>here</td>\n </tr>\n </tbody>\n</table>\n"
+ end
+
+ it 'pre-processes correctly' do
+ expect(subject.to_html).to eq(expected)
+ end
+ end
+
context 'line breaks' do
let(:source) { "@~ @~" }
let(:expected) do
"<p><br /> <br /></p>\n"