spec/spec_helper.rb in combustion-0.5.5 vs spec/spec_helper.rb in combustion-0.6.0

- old
+ new

@@ -1,3 +1,14 @@ # coding: utf-8 require 'bundler/setup' require 'combustion' + +if Rails::VERSION::STRING.to_f < 4.1 + require 'active_record' + require 'active_record/connection_adapters/mysql2_adapter' + + class ActiveRecord::ConnectionAdapters::Mysql2Adapter + NATIVE_DATABASE_TYPES[:primary_key] = "int(11) auto_increment PRIMARY KEY" + end +end + +require File.expand_path("../dummy/lib/engine.rb", __FILE__)