Remove Maruku-specific tests
This commit is contained in:
parent
ae039663b9
commit
4f06ba7884
|
@ -30,41 +30,3 @@ Feature: Markdown
|
||||||
Then the _site directory should exist
|
Then the _site directory should exist
|
||||||
And I should see "Index" in "_site/index.html"
|
And I should see "Index" in "_site/index.html"
|
||||||
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"
|
And I should see "<h1 id=\"my-title\">My Title</h1>" in "_site/index.html"
|
||||||
|
|
||||||
Scenario: Maruku fenced codeblocks
|
|
||||||
Given I have a configuration file with "markdown" set to "maruku"
|
|
||||||
And I have an "index.markdown" file with content:
|
|
||||||
"""
|
|
||||||
---
|
|
||||||
title: My title
|
|
||||||
---
|
|
||||||
|
|
||||||
# My title
|
|
||||||
|
|
||||||
```
|
|
||||||
My awesome code
|
|
||||||
```
|
|
||||||
"""
|
|
||||||
When I run jekyll build
|
|
||||||
Then the _site directory should exist
|
|
||||||
And I should see "My awesome code" in "_site/index.html"
|
|
||||||
And I should see "<pre><code>My awesome code</code></pre>" in "_site/index.html"
|
|
||||||
|
|
||||||
Scenario: Maruku fenced codeblocks with syntax highlighting
|
|
||||||
Given I have a configuration file with "markdown" set to "maruku"
|
|
||||||
And I have an "index.markdown" file with content:
|
|
||||||
"""
|
|
||||||
---
|
|
||||||
title: My title
|
|
||||||
---
|
|
||||||
|
|
||||||
# My title
|
|
||||||
|
|
||||||
```ruby
|
|
||||||
puts "My awesome string"
|
|
||||||
```
|
|
||||||
"""
|
|
||||||
When I run jekyll build
|
|
||||||
Then the _site directory should exist
|
|
||||||
And I should see "My awesome string" in "_site/index.html"
|
|
||||||
And I should see "<pre class="ruby"><code class="ruby">puts "My awesome string"</code></pre>" in "_site/index.html"
|
|
||||||
|
|
|
@ -83,13 +83,6 @@ Feature: Site configuration
|
||||||
Then the _site directory should exist
|
Then the _site directory should exist
|
||||||
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
||||||
|
|
||||||
Scenario: Use Maruku for markup
|
|
||||||
Given I have an "index.markdown" page that contains "[Google](http://google.com)"
|
|
||||||
And I have a configuration file with "markdown" set to "maruku"
|
|
||||||
When I run jekyll build
|
|
||||||
Then the _site directory should exist
|
|
||||||
And I should see "<a href=\"http://google.com\">Google</a>" in "_site/index.html"
|
|
||||||
|
|
||||||
Scenario: Highlight code with pygments
|
Scenario: Highlight code with pygments
|
||||||
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
|
Given I have an "index.html" page that contains "{% highlight ruby %} puts 'Hello world!' {% endhighlight %}"
|
||||||
When I run jekyll build
|
When I run jekyll build
|
||||||
|
|
|
@ -30,7 +30,7 @@ class TestTags < JekyllUnitTest
|
||||||
title: This is a test
|
title: This is a test
|
||||||
---
|
---
|
||||||
|
|
||||||
This document results in a markdown error with maruku
|
This document has some highlighted code in it.
|
||||||
|
|
||||||
{% highlight text %}
|
{% highlight text %}
|
||||||
#{code}
|
#{code}
|
||||||
|
@ -338,7 +338,7 @@ EOS
|
||||||
setup do
|
setup do
|
||||||
@content = <<CONTENT
|
@content = <<CONTENT
|
||||||
---
|
---
|
||||||
title: Maruku vs. RDiscount
|
title: Kramdown vs. RDiscount vs. Redcarpet
|
||||||
---
|
---
|
||||||
|
|
||||||
_FIGHT!_
|
_FIGHT!_
|
||||||
|
@ -351,17 +351,6 @@ puts "3..2..1.."
|
||||||
CONTENT
|
CONTENT
|
||||||
end
|
end
|
||||||
|
|
||||||
context "using Maruku" do
|
|
||||||
setup do
|
|
||||||
create_post(@content)
|
|
||||||
end
|
|
||||||
|
|
||||||
should "parse correctly" do
|
|
||||||
assert_match %r{<em>FIGHT!</em>}, @result
|
|
||||||
assert_match %r{<em>FINISH HIM</em>}, @result
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
context "using RDiscount" do
|
context "using RDiscount" do
|
||||||
setup do
|
setup do
|
||||||
create_post(@content, 'markdown' => 'rdiscount')
|
create_post(@content, 'markdown' => 'rdiscount')
|
||||||
|
@ -604,25 +593,6 @@ CONTENT
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with fenced code blocks with backticks" do
|
|
||||||
|
|
||||||
setup do
|
|
||||||
content = <<CONTENT
|
|
||||||
```ruby
|
|
||||||
puts "Hello world"
|
|
||||||
```
|
|
||||||
CONTENT
|
|
||||||
create_post(content, {
|
|
||||||
'markdown' => 'maruku',
|
|
||||||
'maruku' => {'fenced_code_blocks' => true}}
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
should "render fenced code blocks" do
|
|
||||||
assert_match %r{<pre class=\"ruby\"><code class=\"ruby\">puts "Hello world"</code></pre>}, @result.strip
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
context "include missing file" do
|
context "include missing file" do
|
||||||
setup do
|
setup do
|
||||||
@content = <<CONTENT
|
@content = <<CONTENT
|
||||||
|
|
Loading…
Reference in New Issue