Attempt to avoid redcarpet tests on jruby

This commit is contained in:
Thomas Reynolds 2012-05-02 16:28:04 -07:00
parent 0be82d371e
commit 527c987281
4 changed files with 43 additions and 37 deletions

View file

@ -17,7 +17,10 @@ class Bundler::GemHelper
end end
Cucumber::Rake::Task.new(:test, 'Run features that should pass') do |t| Cucumber::Rake::Task.new(:test, 'Run features that should pass') do |t|
t.cucumber_opts = "--color --tags ~@wip --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}" exempt_tags = ""
exempt_tags << "--tags ~@nojava" if RUBY_PLATFORM == "java"
t.cucumber_opts = "--color --tags ~@wip #{exempt_tags} --strict --format #{ENV['CUCUMBER_FORMAT'] || 'Fivemat'}"
end end
YARD::Rake::YardocTask.new YARD::Rake::YardocTask.new

View file

@ -16,37 +16,3 @@ Feature: Markdown support
Then I should see "<table>" Then I should see "<table>"
When I go to "/space_after_headers.html" When I go to "/space_after_headers.html"
Then I should not see "<h1>" Then I should not see "<h1>"
Scenario: Redcarpet 2 extensions
Given a fixture app "markdown-app"
And a file named "config.rb" with:
"""
set :markdown_engine, :redcarpet
set :markdown, :no_intra_emphasis => true,
:tables => true,
:fenced_code_blocks => true,
:autolink => true,
:strikethrough => true,
:lax_html_blocks => true,
:space_after_headers => true,
:superscript => true#, :smartypants => true
"""
Given the Server is running at "markdown-app"
# When I go to "/smarty_pants.html"
# Then I should see "&#8220;"
When I go to "/no_intra_emphasis.html"
Then I should not see "<em>"
When I go to "/tables.html"
Then I should see "<table>"
When I go to "/fenced_code_blocks.html"
Then I should see "<code>"
When I go to "/autolink.html"
Then I should see "<a href"
When I go to "/strikethrough.html"
Then I should see "<del>"
When I go to "/space_after_headers.html"
Then I should not see "<h1>"
When I go to "/superscript.html"
Then I should see "<sup>"

View file

@ -0,0 +1,37 @@
@nojava
Feature: Markdown support
In order to test included Maruku support
Scenario: Redcarpet 2 extensions
Given a fixture app "markdown-app"
And a file named "config.rb" with:
"""
set :markdown_engine, :redcarpet
set :markdown, :no_intra_emphasis => true,
:tables => true,
:fenced_code_blocks => true,
:autolink => true,
:strikethrough => true,
:lax_html_blocks => true,
:space_after_headers => true,
:superscript => true#, :smartypants => true
"""
Given the Server is running at "markdown-app"
# When I go to "/smarty_pants.html"
# Then I should see "&#8220;"
When I go to "/no_intra_emphasis.html"
Then I should not see "<em>"
When I go to "/tables.html"
Then I should see "<table>"
When I go to "/fenced_code_blocks.html"
Then I should see "<code>"
When I go to "/autolink.html"
Then I should see "<a href"
When I go to "/strikethrough.html"
Then I should see "<del>"
When I go to "/space_after_headers.html"
Then I should not see "<h1>"
When I go to "/superscript.html"
Then I should see "<sup>"