From dc622470c900c34aa1ac897deec8c3eebd2872af Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Mon, 2 Jun 2014 15:12:21 -0400 Subject: [PATCH] add test for collection name --- test/test_document.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_document.rb b/test/test_document.rb index 794c2117..672f7d2e 100644 --- a/test/test_document.rb +++ b/test/test_document.rb @@ -40,6 +40,10 @@ class TestDocument < Test::Unit::TestCase }, @document.data) end + should "output the collection name in the #to_liquid method" do + assert_equal @document.to_liquid['collection'], "methods" + end + end context " a document part of a rendered collection" do