aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2016-08-07 23:41:00 +0200
committerXavier Noria <fxn@hashref.com>2016-08-07 23:41:00 +0200
commitb45c9ca9b6571108242c1dfc3d3e160f56baf025 (patch)
tree831cdef7e70fd26f001aa108daf2365a5fdc8b87 /activerecord/test/cases/migration
parentf90ee8ce2733326e9e1bf91426bb401017adb483 (diff)
downloadrails-b45c9ca9b6571108242c1dfc3d3e160f56baf025.tar.gz
rails-b45c9ca9b6571108242c1dfc3d3e160f56baf025.tar.bz2
rails-b45c9ca9b6571108242c1dfc3d3e160f56baf025.zip
revises most Lint/EndAlignment offenses
Some case expressions remain, need to think about those ones.
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r--activerecord/test/cases/migration/columns_test.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/test/cases/migration/columns_test.rb b/activerecord/test/cases/migration/columns_test.rb
index baf0a0eb9f..70d40ed87a 100644
--- a/activerecord/test/cases/migration/columns_test.rb
+++ b/activerecord/test/cases/migration/columns_test.rb
@@ -75,9 +75,10 @@ module ActiveRecord
def test_rename_nonexistent_column
exception = if current_adapter?(:PostgreSQLAdapter, :OracleAdapter)
ActiveRecord::StatementInvalid
- else
- ActiveRecord::ActiveRecordError
- end
+ else
+ ActiveRecord::ActiveRecordError
+ end
+
assert_raise(exception) do
rename_column "test_models", "nonexistent", "should_fail"
end