aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-11-19 10:55:57 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-11-19 10:55:57 -0800
commit87124457e55a207e190fc8dc981c2dc68445c736 (patch)
tree9e2e8e7142fa674d0168c785a2c0c545f3371089 /activerecord
parent0cc6c46fe9711d2377ff1ae6c55a03b3d1267874 (diff)
downloadrails-87124457e55a207e190fc8dc981c2dc68445c736.tar.gz
rails-87124457e55a207e190fc8dc981c2dc68445c736.tar.bz2
rails-87124457e55a207e190fc8dc981c2dc68445c736.zip
fisting my spelling errors
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/invertible_migration_test.rb (renamed from activerecord/test/cases/invertable_migration_test.rb)12
1 files changed, 6 insertions, 6 deletions
diff --git a/activerecord/test/cases/invertable_migration_test.rb b/activerecord/test/cases/invertible_migration_test.rb
index b4c1dccb22..7e61ab0e47 100644
--- a/activerecord/test/cases/invertable_migration_test.rb
+++ b/activerecord/test/cases/invertible_migration_test.rb
@@ -1,14 +1,14 @@
require "cases/helper"
module ActiveRecord
- class InvertableMigrationTest < ActiveRecord::TestCase
+ class InvertibleMigrationTest < ActiveRecord::TestCase
class SilentMigration < ActiveRecord::Migration
def write(text = '')
# sssshhhhh!!
end
end
- class InvertableMigration < SilentMigration
+ class InvertibleMigration < SilentMigration
def change
create_table("horses") do |t|
t.column :content, :text
@@ -17,7 +17,7 @@ module ActiveRecord
end
end
- class NonInvertableMigration < SilentMigration
+ class NonInvertibleMigration < SilentMigration
def change
create_table("horses") do |t|
t.column :content, :text
@@ -34,7 +34,7 @@ module ActiveRecord
end
def test_no_reverse
- migration = NonInvertableMigration.new
+ migration = NonInvertibleMigration.new
migration.migrate(:up)
assert_raises(IrreversibleMigration) do
migration.migrate(:down)
@@ -42,13 +42,13 @@ module ActiveRecord
end
def test_up
- migration = InvertableMigration.new
+ migration = InvertibleMigration.new
migration.migrate(:up)
assert migration.connection.table_exists?("horses"), "horses should exist"
end
def test_down
- migration = InvertableMigration.new
+ migration = InvertibleMigration.new
migration.migrate :up
migration.migrate :down
assert !migration.connection.table_exists?("horses")