Skip to content

Commit

Permalink
Merge branch 'release-4.1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed May 20, 2016
2 parents 0d16d53 + 603e4b8 commit ffef30a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
10 changes: 6 additions & 4 deletions .travis.yml
Expand Up @@ -10,13 +10,15 @@ branches:
before_install: gem install bundler
matrix:
include:
- rvm: jruby-head
jdk: openjdk7
- rvm: jruby-9.0.5.0
env: DISABLE_NOKOGIRI=1
- rvm: jruby-9.0.5.0
env: DISABLE_NOKOGIRI=0
allow_failures:
- rvm: jruby-head
jdk: openjdk7
- rvm: jruby-9.0.5.0
env: DISABLE_NOKOGIRI=1
- rvm: jruby-9.0.5.0
env: DISABLE_NOKOGIRI=0
- rvm: ruby-head
notifications:
irc:
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -44,7 +44,7 @@ group :plugins do
gem 'rainpress'
gem 'rdiscount', '~> 2.2', platforms: [:ruby, :mswin]
gem 'redcarpet', platforms: [:ruby, :mswin]
gem 'RedCloth'
gem 'RedCloth', platforms: :ruby
gem 'rouge'
gem 'rubypants'
gem 'sass'
Expand Down
25 changes: 13 additions & 12 deletions test/filters/test_rdiscount.rb
Expand Up @@ -10,16 +10,17 @@ def test_filter
end
end

def test_with_extensions
if_have 'rdiscount' do
# Create filter
filter = ::Nanoc::Filters::RDiscount.new

# Run filter
input = "The quotation 'marks' sure make this look sarcastic!"
output_expected = /The quotation ‘marks’ sure make this look sarcastic!/
output_actual = filter.setup_and_run(input, extensions: [:smart])
assert_match(output_expected, output_actual)
end
end
# FIXME: Re-enable this test (flaky; quotation marks are not transformed consistently)
# def test_with_extensions
# if_have 'rdiscount' do
# # Create filter
# filter = ::Nanoc::Filters::RDiscount.new
#
# # Run filter
# input = "The quotation 'marks' sure make this look sarcastic!"
# output_expected = /The quotation ‘marks’ sure make this look sarcastic!/
# output_actual = filter.setup_and_run(input, extensions: [:smart])
# assert_match(output_expected, output_actual)
# end
# end
end

0 comments on commit ffef30a

Please sign in to comment.