diff options
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/associations_test.rb | 2 | ||||
-rwxr-xr-x | activerecord/test/base_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/migration_test.rb | 4 | ||||
-rw-r--r-- | activerecord/test/pk_test.rb | 2 | ||||
-rwxr-xr-x | activerecord/test/unconnected_test.rb | 2 | ||||
-rwxr-xr-x | activerecord/test/validations_test.rb | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/activerecord/test/associations_test.rb b/activerecord/test/associations_test.rb index 8cb3c16a66..e6c7944dbb 100755 --- a/activerecord/test/associations_test.rb +++ b/activerecord/test/associations_test.rb @@ -1474,7 +1474,7 @@ class HasAndBelongsToManyAssociationsTest < Test::Unit::TestCase assert_equal 1, project.access_level.to_i end - def test_hatbm_attribute_access_and_respond_to + def test_habtm_attribute_access_and_respond_to project = developers(:jamis).projects[0] assert project.has_attribute?("name") assert project.has_attribute?("joined_on") diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 4fb7f39ecc..1883f369c3 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -800,7 +800,7 @@ class BasicsTest < Test::Unit::TestCase assert_nil keyboard.id end - def test_customized_primary_key_remains_protected_when_refered_to_as_id + def test_customized_primary_key_remains_protected_when_referred_to_as_id subscriber = Subscriber.new(:id => 'webster123', :name => 'nice try') assert_nil subscriber.id diff --git a/activerecord/test/migration_test.rb b/activerecord/test/migration_test.rb index 69e9212fa6..9ac9bb10fd 100644 --- a/activerecord/test/migration_test.rb +++ b/activerecord/test/migration_test.rb @@ -340,7 +340,7 @@ if ActiveRecord::Base.connection.supports_migrations? assert_equal 127, jonnyg.intelligence_quotient jonnyg.destroy ensure - ActiveRecord::Migration.remove_column :people, :intelligece_quotient rescue nil + ActiveRecord::Migration.remove_column :people, :intelligence_quotient rescue nil end end @@ -578,7 +578,7 @@ if ActiveRecord::Base.connection.supports_migrations? assert_equal BigDecimal("1000234000567.95"), b.big_bank_balance # This one is fun. The 'value_of_e' field is defined as 'DECIMAL' with - # precision/scale explictly left out. By the SQL standard, numbers + # precision/scale explicitly left out. By the SQL standard, numbers # assigned to this field should be truncated but that's seldom respected. if current_adapter?(:PostgreSQLAdapter, :SQLite2Adapter) # - PostgreSQL changes the SQL spec on columns declared simply as diff --git a/activerecord/test/pk_test.rb b/activerecord/test/pk_test.rb index 4daef43062..431ff9af9d 100644 --- a/activerecord/test/pk_test.rb +++ b/activerecord/test/pk_test.rb @@ -95,7 +95,7 @@ class PrimaryKeysTest < Test::Unit::TestCase def test_instance_update_should_quote_pkey assert_nothing_raised { MixedCaseMonkey.find(1).save } end - def test_instance_destry_should_quote_pkey + def test_instance_destroy_should_quote_pkey assert_nothing_raised { MixedCaseMonkey.find(1).destroy } end end diff --git a/activerecord/test/unconnected_test.rb b/activerecord/test/unconnected_test.rb index 2d06410dd8..8079a051e5 100755 --- a/activerecord/test/unconnected_test.rb +++ b/activerecord/test/unconnected_test.rb @@ -3,7 +3,7 @@ require 'abstract_unit' class TestRecord < ActiveRecord::Base end -class TestUnconnectedAdaptor < Test::Unit::TestCase +class TestUnconnectedAdapter < Test::Unit::TestCase self.use_transactional_fixtures = false def setup diff --git a/activerecord/test/validations_test.rb b/activerecord/test/validations_test.rb index d0c54d1528..4b91d86b18 100755 --- a/activerecord/test/validations_test.rb +++ b/activerecord/test/validations_test.rb @@ -661,7 +661,7 @@ class ValidationsTest < Test::Unit::TestCase end end - def test_validates_length_with_globaly_modified_error_message + def test_validates_length_with_globally_modified_error_message ActiveRecord::Errors.default_error_messages[:too_short] = 'tu est trops petit hombre %d' Topic.validates_length_of :title, :minimum => 10 t = Topic.create(:title => 'too short') |