提交 78bac468 编写于 作者: R Rafael Mendonça França

Remove more skip

上级 bd09afb5
......@@ -185,14 +185,14 @@ def test_add_index
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
......
......@@ -78,8 +78,6 @@ def test_rename_table_does_not_rename_custom_named_index
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')
......
......@@ -442,8 +442,6 @@ def test_create_table_with_binary_column
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
......
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册