test/block_cutter_test.rb in flannel-0.2.5 vs test/block_cutter_test.rb in flannel-0.2.6
- old
+ new
@@ -38,10 +38,17 @@
squares = @block_cutter.cut markup
assert_equal "foo\n\nbar", squares[0].to_s
end
- should "set square style to feed based on ampersand " do
+ should "set square style to feed based on full tag " do
+ markup = ":feed http://www.example.com/rss"
+
+ squares = @block_cutter.cut markup
+ assert_equal :feed, squares[0].style
+ end
+
+ should "set square style to feed based on ampersand abbrev" do
markup = "& http://www.example.com/rss"
squares = @block_cutter.cut markup
assert_equal :feed, squares[0].style
end