class PostgreSQLGeometricLineTest
Public Instance Methods
test_alternative_format_line_type()
click to toggle source
# File activerecord/test/cases/adapters/postgresql/geometric_test.rb, line 275 def test_alternative_format_line_type g = PostgresqlLine.new( a_line: "(2.0, 3), (4.0, 6.0)" ) g.save! h = PostgresqlLine.find(g.id) assert_equal "{1.5,-1,0}", h.a_line end
test_geometric_line_type()
click to toggle source
# File activerecord/test/cases/adapters/postgresql/geometric_test.rb, line 265 def test_geometric_line_type g = PostgresqlLine.new( a_line: "{2.0, 3, 5.5}" ) g.save! h = PostgresqlLine.find(g.id) assert_equal "{2,3,5.5}", h.a_line end
test_schema_dumping_for_line_type()
click to toggle source
# File activerecord/test/cases/adapters/postgresql/geometric_test.rb, line 285 def test_schema_dumping_for_line_type output = dump_table_schema("postgresql_lines") assert_match %r{t\.line\s+"a_line"$}, output end