Skip to content

Commit

Permalink
Add hack to make RedCloth load on MinGW systems (test only)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Jan 8, 2020
1 parent 633795c commit f4f02ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/templates/markup_processor_integrations/redcloth_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

require File.dirname(__FILE__) + '/integration_spec_helper'

# Hack to fix RedCloth compat issues with MinGW compilation hosts
begin
require 'redcloth'
rescue LoadError
require 'rbconfig'
RbConfig::CONFIG['arch'] = 'not_windows_dont_worry'
end

RSpec.describe 'RedCloth integration' do
include_context 'shared helpers for markup processor integration specs'
let(:markup) { :textile }
Expand Down

0 comments on commit f4f02ba

Please sign in to comment.