Moving url to local var for better readability

This commit is contained in:
Brint O'Hearn 2016-05-16 20:42:59 -05:00
parent df585aa5c6
commit ce9a8cb0f2
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ class TestExcerpt < JekyllUnitTest
context "#to_liquid" do context "#to_liquid" do
should "contain the proper page data to mimick the post liquid" do should "contain the proper page data to mimick the post liquid" do
assert_equal "Post Excerpt with Layout", @excerpt.to_liquid["title"] assert_equal "Post Excerpt with Layout", @excerpt.to_liquid["title"]
assert_equal "/bar/baz/z_category/mixedcase/2013/07/22/"\ url = "/bar/baz/z_category/mixedcase/2013/07/22/post-excerpt-with-layout.html"
"post-excerpt-with-layout.html", @excerpt.to_liquid["url"] assert_equal url, @excerpt.to_liquid["url"]
assert_equal Time.parse("2013-07-22"), @excerpt.to_liquid["date"] assert_equal Time.parse("2013-07-22"), @excerpt.to_liquid["date"]
assert_equal %w(bar baz z_category MixedCase), @excerpt.to_liquid["categories"] assert_equal %w(bar baz z_category MixedCase), @excerpt.to_liquid["categories"]
assert_equal %w(first second third jekyllrb.com), @excerpt.to_liquid["tags"] assert_equal %w(first second third jekyllrb.com), @excerpt.to_liquid["tags"]