Permalink
Browse files

TestDatabase -> TestsDatabase

  • Loading branch information...
1 parent d01e639 commit 4367f39dea7eedb1bf6e7f52b4522c695befe1da @lifo lifo committed Mar 20, 2009
@@ -5,7 +5,7 @@
require 'active_record/fixtures'
module ActiveModel
- module TestDatabase
+ module TestsDatabase
def self.included(base)
ActiveRecord::Base.logger = Logger.new("debug.log")
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:')
@@ -1,13 +1,13 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
require 'models/reply'
require 'models/developer'
class AcceptanceValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
repair_validations(Topic)
@@ -1,11 +1,11 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
class ConditionalValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
repair_validations(Topic)
@@ -1,12 +1,12 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
require 'models/developer'
class ConfirmationValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
repair_validations(Topic)
@@ -1,11 +1,11 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
class ExclusionValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
repair_validations(Topic)
@@ -1,11 +1,11 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
class PresenceValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
repair_validations(Topic)
@@ -3,7 +3,7 @@
require 'models/reply'
class I18nValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
def setup
reset_callbacks Topic
@@ -1,11 +1,11 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
class InclusionValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
repair_validations(Topic)
@@ -1,11 +1,11 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
class LengthValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
repair_validations(Topic)
@@ -1,12 +1,12 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
require 'models/developer'
class NumericalityValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
repair_validations(Topic)
@@ -1,11 +1,11 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
class PresenceValidationTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
repair_validations(Topic)
@@ -1,13 +1,13 @@
# encoding: utf-8
require 'cases/helper'
-require 'cases/test_database'
+require 'cases/tests_database'
require 'models/topic'
require 'models/reply'
require 'models/developer'
class ValidationsTest < ActiveModel::TestCase
- include ActiveModel::TestDatabase
+ include ActiveModel::TestsDatabase
include ActiveModel::ValidationsRepairHelper
fixtures :topics, :developers

0 comments on commit 4367f39

Please sign in to comment.