test/metamagic_test.rb in metamagic-3.1.2 vs test/metamagic_test.rb in metamagic-3.1.3
- old
+ new
@@ -49,9 +49,15 @@
assert_equal %{<title>My Title</title>\n<meta content="My description" name="description" />\n<meta content="one, two, three" name="keywords" />},
metamagic
end
+ test "shortcut helper returns value" do
+ assert_equal "My Title", title("My Title")
+ assert_equal "My Description", description("My Description")
+ assert_equal %w{one two three}, keywords(%w{one two three})
+ end
+
test "not adding templates from views" do
title "This is a :nonexistent_key"
assert_equal %{<title>This is a :nonexistent_key</title>},
metamagic