0

I have discovered that the redgreen gem is incompatible with ISO-8859-1 encoding of test files. What is the best way to disable one gem temporarily to run certain test files?

B Seven
  • 44,484
  • 66
  • 240
  • 385

1 Answers1

2

My first advice would be to save those files in UTF-8.

Alternatively, I'd look into the grouping feature of Bundler.

In your Gemfile

group :utf8 do
  gem 'redgreen'
end

And then require that group only when you want to use the redgreen gem.

Bundler.require(:utf8, :default, Rails.env)
asymmetric
  • 3,800
  • 3
  • 34
  • 52