1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Removed deprecated Arel::Sql::Engine and make use of FakeRecord::Base inplace directly for test helper.

This commit is contained in:
Vipul A M 2014-01-04 15:20:23 +05:30 committed by Rafael Mendonça França
parent 048d6c0aef
commit a09c9f0617
3 changed files with 1 additions and 12 deletions

View file

@ -27,7 +27,6 @@ require 'arel/nodes'
#### these are deprecated
require 'arel/deprecated'
require 'arel/sql/engine'
require 'arel/sql_literal'
####

View file

@ -1,10 +0,0 @@
module Arel
module Sql
class Engine
def self.new thing
#warn "#{caller.first} -- Engine will be removed"
thing
end
end
end
end

View file

@ -4,7 +4,7 @@ require 'fileutils'
require 'arel'
require 'support/fake_record'
Arel::Table.engine = Arel::Sql::Engine.new(FakeRecord::Base.new)
Arel::Table.engine = FakeRecord::Base.new
class Object
def must_be_like other