Browse files

Show deprecated messages only when target database adapters defined

  • Loading branch information...
1 parent 0074d7d commit 67994ef2f9d6c529ec88c28c884681eafa335309 @yahonda yahonda committed with Apr 1, 2013
View
2 activerecord/test/cases/tasks/firebird_rake_test.rb
@@ -23,7 +23,7 @@ def initialize(configuration)
ActiveSupport::Deprecation.silence { super }
end
end
- ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks)
+ ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks) unless defined? ActiveRecord::ConnectionAdapters::FirebirdAdapter
end
end
View
2 activerecord/test/cases/tasks/oracle_rake_test.rb
@@ -17,7 +17,7 @@ def initialize(configuration)
ActiveSupport::Deprecation.silence { super }
end
end
- ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks)
+ ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks) unless defined? ActiveRecord::ConnectionAdapters::OracleAdapter
end
end
View
2 activerecord/test/cases/tasks/sqlserver_rake_test.rb
@@ -20,7 +20,7 @@ def initialize(configuration)
ActiveSupport::Deprecation.silence { super }
end
end
- ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks)
+ ActiveRecord::Tasks::DatabaseTasks.stubs(:class_for_adapter).returns(@tasks) unless defined? ActiveRecord::ConnectionAdapters::SQLServerAdapter
end
end

0 comments on commit 67994ef

Please sign in to comment.