Skip to content

Commit 15f4755

Browse files
committed
as usual - guessed the AR version wrong = only type cast on 3.1
1 parent 213ec96 commit 15f4755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/db/postgresql/quoting_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ def test_type_cast_true
99
c = Column.new(nil, 1, 'boolean')
1010
assert_equal 't', connection.type_cast(true, nil)
1111
assert_equal 't', connection.type_cast(true, c)
12-
end if ar_version('3.0')
12+
end if ar_version('3.1')
1313

1414
def test_type_cast_false
1515
c = Column.new(nil, 1, 'boolean')
1616
assert_equal 'f', connection.type_cast(false, nil)
1717
assert_equal 'f', connection.type_cast(false, c)
18-
end if ar_version('3.0')
18+
end if ar_version('3.1')
1919

2020
def test_type_cast_cidr
2121
ip = IPAddr.new('255.0.0.0/8')

0 commit comments

Comments
 (0)