spec/spec_helper.rb in dbf-1.7.1 vs spec/spec_helper.rb in dbf-1.7.2
- old
+ new
@@ -2,8 +2,15 @@
require 'dbf'
require 'rspec'
DB_PATH = File.dirname(__FILE__) + '/fixtures' unless defined?(DB_PATH)
+if RUBY_VERSION == "1.8.6"
+ # warn 'ruby-1.8.6: defining Array#reduce as alias of Array#inject'
+ class Array
+ alias_method :reduce, :inject
+ end
+end
+
RSpec.configure do |config|
end