From 47fa98d0e6ef3c1ef8c675c6b7454a26e6cc769b Mon Sep 17 00:00:00 2001 From: Hassan Khan Date: Thu, 13 Feb 2014 17:41:37 +0000 Subject: [PATCH] Added spacing to link markup in ``Zepto\Helper::link_for()`` and updated test class --- library/Zepto/Helper.php | 2 +- tests/Zepto/HelperTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Zepto/Helper.php b/library/Zepto/Helper.php index 9e0a8e0..384397d 100644 --- a/library/Zepto/Helper.php +++ b/library/Zepto/Helper.php @@ -172,7 +172,7 @@ public function link_for($file_name) // Get file title and URL and return $link = $content[$file_name]['meta']['title']; $url = $this->url_for($file_name); - return sprintf('' . $link . "", $url); + return sprintf(' ' . $link . ' ', $url); } } diff --git a/tests/Zepto/HelperTest.php b/tests/Zepto/HelperTest.php index e834d37..0da0c02 100644 --- a/tests/Zepto/HelperTest.php +++ b/tests/Zepto/HelperTest.php @@ -150,7 +150,7 @@ public function testLinkFor() $zepto = new Zepto; $helper = new Helper($zepto->app); $actual = $helper->link_for('index.md'); - $expected = 'Welcome'; + $expected = ' Welcome '; $this->assertEquals($expected, $actual); }