diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-08 14:18:54 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-08 14:18:54 -0200 |
commit | 78bac468e6ac0c97ff81c15fe81c5a5a99c1c177 (patch) | |
tree | 12fdbeb4be73033f2c4c942074eac971c714e45b /activerecord/test | |
parent | bd09afb5fb3e2047c605660dac6ef4495c419716 (diff) | |
download | rails-78bac468e6ac0c97ff81c15fe81c5a5a99c1c177.tar.gz rails-78bac468e6ac0c97ff81c15fe81c5a5a99c1c177.tar.bz2 rails-78bac468e6ac0c97ff81c15fe81c5a5a99c1c177.zip |
Remove more skip
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration/index_test.rb | 14 | ||||
-rw-r--r-- | activerecord/test/cases/migration/rename_table_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/primary_keys_test.rb | 2 |
4 files changed, 7 insertions, 13 deletions
diff --git a/activerecord/test/cases/migration/index_test.rb b/activerecord/test/cases/migration/index_test.rb index e388c25161..8d1daa0a04 100644 --- a/activerecord/test/cases/migration/index_test.rb +++ b/activerecord/test/cases/migration/index_test.rb @@ -185,14 +185,14 @@ module ActiveRecord end end - def test_add_partial_index - skip 'only on pg' unless current_adapter?(:PostgreSQLAdapter) + if current_adapter?(:PostgreSQLAdapter) + def test_add_partial_index + connection.add_index("testings", "last_name", :where => "first_name = 'john doe'") + assert connection.index_exists?("testings", "last_name") - connection.add_index("testings", "last_name", :where => "first_name = 'john doe'") - assert connection.index_exists?("testings", "last_name") - - connection.remove_index("testings", "last_name") - assert !connection.index_exists?("testings", "last_name") + connection.remove_index("testings", "last_name") + assert !connection.index_exists?("testings", "last_name") + end end private diff --git a/activerecord/test/cases/migration/rename_table_test.rb b/activerecord/test/cases/migration/rename_table_test.rb index 3ac4dd8934..2a7fafc559 100644 --- a/activerecord/test/cases/migration/rename_table_test.rb +++ b/activerecord/test/cases/migration/rename_table_test.rb @@ -78,8 +78,6 @@ module ActiveRecord if current_adapter?(:PostgreSQLAdapter) def test_rename_table_for_postgresql_should_also_rename_default_sequence - skip 'not supported' - rename_table :test_models, :octopi pk, seq = connection.pk_and_sequence_for('octopi') diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index d2f29cf10f..f74e903348 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -442,8 +442,6 @@ class MigrationTest < ActiveRecord::TestCase if current_adapter? :OracleAdapter def test_create_table_with_custom_sequence_name - skip "not supported" - # table name is 29 chars, the standard sequence name will # be 33 chars and should be shortened assert_nothing_raised do diff --git a/activerecord/test/cases/primary_keys_test.rb b/activerecord/test/cases/primary_keys_test.rb index 3c122478ed..1b915387be 100644 --- a/activerecord/test/cases/primary_keys_test.rb +++ b/activerecord/test/cases/primary_keys_test.rb @@ -187,8 +187,6 @@ class PrimaryKeyWithNoConnectionTest < ActiveRecord::TestCase unless in_memory_db? def test_set_primary_key_with_no_connection - return skip("disconnect wipes in-memory db") - connection = ActiveRecord::Base.remove_connection model = Class.new(ActiveRecord::Base) |