diff options
author | Yong Guo <guoyong206@gmail.com> | 2016-03-01 13:21:47 -0800 |
---|---|---|
committer | Yong Guo <guoyong206@gmail.com> | 2016-03-01 13:21:47 -0800 |
commit | c693cdae0860654e28f46c9af797212b68bef5bd (patch) | |
tree | 2505e00eec77791284eba661814b6bdb4a7ea64e /test/visitors | |
parent | d72cf2972efc0d5cfe72bb7c009b2e76111b766e (diff) | |
download | rails-c693cdae0860654e28f46c9af797212b68bef5bd.tar.gz rails-c693cdae0860654e28f46c9af797212b68bef5bd.tar.bz2 rails-c693cdae0860654e28f46c9af797212b68bef5bd.zip |
Fix issue #415 - Should Arel::Nodes::True.new() be 1 in sqlite3?
Diffstat (limited to 'test/visitors')
-rw-r--r-- | test/visitors/test_sqlite.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/visitors/test_sqlite.rb b/test/visitors/test_sqlite.rb index 8fb8e76095..a9f3501f20 100644 --- a/test/visitors/test_sqlite.rb +++ b/test/visitors/test_sqlite.rb @@ -18,6 +18,13 @@ module Arel node = Nodes::Lock.new(Arel.sql('FOR UPDATE')) assert_equal '', @visitor.accept(node, Collectors::SQLString.new).value end + + it 'does not support boolean' do + node = Nodes::True.new() + assert_equal '1', @visitor.accept(node, Collectors::SQLString.new).value + node = Nodes::False.new() + assert_equal '0', @visitor.accept(node, Collectors::SQLString.new).value + end end end end |