From 8f64d1c040edc896e65795f3d328f4924c2994b7 Mon Sep 17 00:00:00 2001 From: Ian White Date: Sat, 27 Jun 2009 18:01:08 +0100 Subject: [PATCH] BC fix for running specs on ruby 1.8.7 + rails 2.0.x --- spec/spec_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 32db496..7eb2d22 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -6,4 +6,9 @@ Spec::Runner.configure do |config| config.use_transactional_fixtures = true config.use_instantiated_fixtures = false +end + +# BC: fix for ruby 1.8.7 + rails 2.0.x Enumerable problem +unless String.new.respond_to?(:force_encoding) + String.send(:remove_method, :chars) rescue nil end \ No newline at end of file