diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-10-23 18:20:03 +0300 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-06-04 22:44:03 +0300 |
commit | 464b7f3ddcf5e9b23741862bf8c7a49f61792de3 (patch) | |
tree | f5fc6888fc040df5357a5d11cdd3d012d0b4cccf /activerecord/test/cases | |
parent | 9bf7b6334fae71821c2056ae2e6e8461ec3f73be (diff) | |
download | rails-464b7f3ddcf5e9b23741862bf8c7a49f61792de3.tar.gz rails-464b7f3ddcf5e9b23741862bf8c7a49f61792de3.tar.bz2 rails-464b7f3ddcf5e9b23741862bf8c7a49f61792de3.zip |
test fixes for Oracle enhanced adapter:
latest oracle_enhanced adapter does automatic shortening of index names
ignore select from all_triggers table in assert_queries
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index a0237d57a7..1edec66c25 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -1374,8 +1374,8 @@ if ActiveRecord::Base.connection.supports_migrations? return unless current_adapter? :OracleAdapter # table name is 29 chars, the standard sequence name will - # be 33 chars and fail - assert_raise(ActiveRecord::StatementInvalid) do + # be 33 chars and should be shortened + assert_nothing_raised do begin Person.connection.create_table :table_with_name_thats_just_ok do |t| t.column :foo, :string, :null => false |