Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show deprecated messages only when target database adapters defined

  • Loading branch information...
commit 67994ef2f9d6c529ec88c28c884681eafa335309 1 parent 0074d7d
Yasuo Honda yahonda authored committed
2  activerecord/test/cases/tasks/firebird_rake_test.rb
View
@@ -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
2  activerecord/test/cases/tasks/oracle_rake_test.rb
View
@@ -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
2  activerecord/test/cases/tasks/sqlserver_rake_test.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.