Update Maruku dependency to allow use of the latest version.

All Maruku releases post-0.6 follow semver, so they should be backwards-compatible on minor versions. In this case, the only test that needed to change was one that was asserting buggy behavior that was fixed in 0.7.1.
This commit is contained in:
Ben Hollis 2014-07-07 23:03:01 -07:00
parent 7645a72b2f
commit cbb4b10ce6
3 changed files with 7 additions and 8 deletions

View File

@ -45,7 +45,7 @@ Feature: Markdown
When I run jekyll build When I run jekyll build
Then the _site directory should exist Then the _site directory should exist
And I should see "My awesome code" in "_site/index.html" And I should see "My awesome code" in "_site/index.html"
And I should see "<pre><code>\nMy awesome code\n</code></pre>" in "_site/index.html" And I should see "<pre><code>My awesome code</code></pre>" in "_site/index.html"
Scenario: Maruku fenced codeblocks Scenario: Maruku fenced codeblocks
Given I have a configuration file with "markdown" set to "maruku" Given I have a configuration file with "markdown" set to "maruku"
@ -64,4 +64,4 @@ Feature: Markdown
When I run jekyll build When I run jekyll build
Then the _site directory should exist Then the _site directory should exist
And I should see "My awesome string" in "_site/index.html" And I should see "My awesome string" in "_site/index.html"
And I should see "<pre class="ruby"><code class="ruby">\nputs &quot;My awesome string&quot;\n</code></pre>" in "_site/index.html" And I should see "<pre class="ruby"><code class="ruby">puts &quot;My awesome string&quot;</code></pre>" in "_site/index.html"

View File

@ -50,7 +50,7 @@ Gem::Specification.new do |s|
s.add_development_dependency('rr', "~> 1.1") s.add_development_dependency('rr', "~> 1.1")
s.add_development_dependency('cucumber', "1.3.11") s.add_development_dependency('cucumber', "1.3.11")
s.add_development_dependency('RedCloth', "~> 4.2") s.add_development_dependency('RedCloth', "~> 4.2")
s.add_development_dependency('maruku', "0.7.0") s.add_development_dependency('maruku', "~> 0.7.0")
s.add_development_dependency('rdiscount', "~> 1.6") s.add_development_dependency('rdiscount', "~> 1.6")
s.add_development_dependency('launchy', "~> 2.3") s.add_development_dependency('launchy', "~> 2.3")
s.add_development_dependency('simplecov', "~> 0.7") s.add_development_dependency('simplecov', "~> 0.7")

View File

@ -420,9 +420,8 @@ CONTENT
) )
end end
# todo: if #112 is merged into maruku, update to remove the newlines inside code block
should "render fenced code blocks" do should "render fenced code blocks" do
assert_match %r{<pre class=\"ruby\"><code class=\"ruby\">\nputs &quot;Hello world&quot;\n</code></pre>}, @result.strip assert_match %r{<pre class=\"ruby\"><code class=\"ruby\">puts &quot;Hello world&quot;</code></pre>}, @result.strip
end end
end end