diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-03-20 16:02:12 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-03-20 16:02:12 +0000 |
commit | 4367f39dea7eedb1bf6e7f52b4522c695befe1da (patch) | |
tree | 5d77501c8a800cc88741941cca4422325e7f3b96 /activemodel/test | |
parent | d01e639dafece0cbae08512f4645bcee7a5a8224 (diff) | |
download | rails-4367f39dea7eedb1bf6e7f52b4522c695befe1da.tar.gz rails-4367f39dea7eedb1bf6e7f52b4522c695befe1da.tar.bz2 rails-4367f39dea7eedb1bf6e7f52b4522c695befe1da.zip |
TestDatabase -> TestsDatabase
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/tests_database.rb (renamed from activemodel/test/cases/test_database.rb) | 2 | ||||
-rw-r--r-- | activemodel/test/cases/validations/acceptance_validation_test.rb | 4 | ||||
-rw-r--r-- | activemodel/test/cases/validations/conditional_validation_test.rb | 4 | ||||
-rw-r--r-- | activemodel/test/cases/validations/confirmation_validation_test.rb | 4 | ||||
-rw-r--r-- | activemodel/test/cases/validations/exclusion_validation_test.rb | 4 | ||||
-rw-r--r-- | activemodel/test/cases/validations/format_validation_test.rb | 4 | ||||
-rw-r--r-- | activemodel/test/cases/validations/i18n_validation_test.rb | 2 | ||||
-rw-r--r-- | activemodel/test/cases/validations/inclusion_validation_test.rb | 4 | ||||
-rw-r--r-- | activemodel/test/cases/validations/length_validation_test.rb | 4 | ||||
-rw-r--r-- | activemodel/test/cases/validations/numericality_validation_test.rb | 4 | ||||
-rw-r--r-- | activemodel/test/cases/validations/presence_validation_test.rb | 4 | ||||
-rw-r--r-- | activemodel/test/cases/validations_test.rb | 4 |
12 files changed, 22 insertions, 22 deletions
diff --git a/activemodel/test/cases/test_database.rb b/activemodel/test/cases/tests_database.rb index 509383ec59..cb5cda98f5 100644 --- a/activemodel/test/cases/test_database.rb +++ b/activemodel/test/cases/tests_database.rb @@ -5,7 +5,7 @@ require 'active_record' 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:') diff --git a/activemodel/test/cases/validations/acceptance_validation_test.rb b/activemodel/test/cases/validations/acceptance_validation_test.rb index f5f0279554..b24da3b334 100644 --- a/activemodel/test/cases/validations/acceptance_validation_test.rb +++ b/activemodel/test/cases/validations/acceptance_validation_test.rb @@ -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) diff --git a/activemodel/test/cases/validations/conditional_validation_test.rb b/activemodel/test/cases/validations/conditional_validation_test.rb index d4cb3555f3..72b4800dce 100644 --- a/activemodel/test/cases/validations/conditional_validation_test.rb +++ b/activemodel/test/cases/validations/conditional_validation_test.rb @@ -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) diff --git a/activemodel/test/cases/validations/confirmation_validation_test.rb b/activemodel/test/cases/validations/confirmation_validation_test.rb index c3caa63d0b..3b4b27df39 100644 --- a/activemodel/test/cases/validations/confirmation_validation_test.rb +++ b/activemodel/test/cases/validations/confirmation_validation_test.rb @@ -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) diff --git a/activemodel/test/cases/validations/exclusion_validation_test.rb b/activemodel/test/cases/validations/exclusion_validation_test.rb index 2e3da3c079..b9b53ffb23 100644 --- a/activemodel/test/cases/validations/exclusion_validation_test.rb +++ b/activemodel/test/cases/validations/exclusion_validation_test.rb @@ -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) diff --git a/activemodel/test/cases/validations/format_validation_test.rb b/activemodel/test/cases/validations/format_validation_test.rb index 9a7a93a6c6..adf90adf6f 100644 --- a/activemodel/test/cases/validations/format_validation_test.rb +++ b/activemodel/test/cases/validations/format_validation_test.rb @@ -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) diff --git a/activemodel/test/cases/validations/i18n_validation_test.rb b/activemodel/test/cases/validations/i18n_validation_test.rb index 2b2e52ca82..52a6c87668 100644 --- a/activemodel/test/cases/validations/i18n_validation_test.rb +++ b/activemodel/test/cases/validations/i18n_validation_test.rb @@ -3,7 +3,7 @@ require 'models/topic' require 'models/reply' class I18nValidationTest < ActiveModel::TestCase - include ActiveModel::TestDatabase + include ActiveModel::TestsDatabase def setup reset_callbacks Topic diff --git a/activemodel/test/cases/validations/inclusion_validation_test.rb b/activemodel/test/cases/validations/inclusion_validation_test.rb index 7b2020c719..8d81cca96b 100644 --- a/activemodel/test/cases/validations/inclusion_validation_test.rb +++ b/activemodel/test/cases/validations/inclusion_validation_test.rb @@ -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) diff --git a/activemodel/test/cases/validations/length_validation_test.rb b/activemodel/test/cases/validations/length_validation_test.rb index daca363b57..9c4639a141 100644 --- a/activemodel/test/cases/validations/length_validation_test.rb +++ b/activemodel/test/cases/validations/length_validation_test.rb @@ -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) diff --git a/activemodel/test/cases/validations/numericality_validation_test.rb b/activemodel/test/cases/validations/numericality_validation_test.rb index 3a30c0cec1..0fd87313e0 100644 --- a/activemodel/test/cases/validations/numericality_validation_test.rb +++ b/activemodel/test/cases/validations/numericality_validation_test.rb @@ -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) diff --git a/activemodel/test/cases/validations/presence_validation_test.rb b/activemodel/test/cases/validations/presence_validation_test.rb index 5bf29be491..994066095b 100644 --- a/activemodel/test/cases/validations/presence_validation_test.rb +++ b/activemodel/test/cases/validations/presence_validation_test.rb @@ -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) diff --git a/activemodel/test/cases/validations_test.rb b/activemodel/test/cases/validations_test.rb index a7269522eb..5b4f955eae 100644 --- a/activemodel/test/cases/validations_test.rb +++ b/activemodel/test/cases/validations_test.rb @@ -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 |