Skip to content

Commit

Permalink
BC fix for running specs on ruby 1.8.7 + rails 2.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwhite committed Jun 27, 2009
1 parent 54cea4a commit 8f64d1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/spec_helper.rb
Expand Up @@ -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

0 comments on commit 8f64d1c

Please sign in to comment.