Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test pg, remove unused column assignments. Follow up to 254cdf4

  • Loading branch information...
commit 4bcf9029452e0c760af04faab6b549710401e8cf 1 parent 9e86428
@senny senny authored
View
2  activerecord/test/cases/adapters/postgresql/array_test.rb
@@ -38,8 +38,6 @@ def test_column
def test_default
@connection.add_column 'pg_arrays', 'score', :integer, array: true, default: [4, 4, 2]
PgArray.reset_column_information
- column = PgArray.columns_hash["score"]
-
assert_equal([4, 4, 2], PgArray.new.score)
ensure
PgArray.reset_column_information
View
3  activerecord/test/cases/adapters/postgresql/bit_string_test.rb
@@ -42,10 +42,7 @@ def test_bit_string_varying_column
end
def test_default
- column = PostgresqlBitString.columns_hash["a_bit"]
assert_equal "00000011", PostgresqlBitString.new.a_bit
-
- column = PostgresqlBitString.columns_hash["a_bit_varying"]
assert_equal "0011", PostgresqlBitString.new.a_bit_varying
end
View
3  activerecord/test/cases/adapters/postgresql/geometric_test.rb
@@ -35,10 +35,7 @@ def test_column
end
def test_default
- column = PostgresqlPoint.columns_hash["y"]
assert_equal [12.2, 13.3], PostgresqlPoint.new.y
-
- column = PostgresqlPoint.columns_hash["z"]
assert_equal [14.4, 15.5], PostgresqlPoint.new.z
end
View
2  activerecord/test/cases/adapters/postgresql/hstore_test.rb
@@ -64,8 +64,6 @@ def test_column
def test_default
@connection.add_column 'hstores', 'permissions', :hstore, default: '"users"=>"read", "articles"=>"write"'
Hstore.reset_column_information
- column = Hstore.columns_hash["permissions"]
-
assert_equal({"users"=>"read", "articles"=>"write"}, Hstore.new.permissions)
ensure
Hstore.reset_column_information
View
2  activerecord/test/cases/adapters/postgresql/json_test.rb
@@ -43,8 +43,6 @@ def test_column
def test_default
@connection.add_column 'json_data_type', 'permissions', :json, default: '{"users": "read", "posts": ["read", "write"]}'
JsonDataType.reset_column_information
- column = JsonDataType.columns_hash["permissions"]
-
assert_equal({"users"=>"read", "posts"=>["read", "write"]}, JsonDataType.new.permissions)
ensure
JsonDataType.reset_column_information
Please sign in to comment.
Something went wrong with that request. Please try again.