diff options
Diffstat (limited to 'spec/arel/visitors/to_sql_spec.rb')
-rw-r--r-- | spec/arel/visitors/to_sql_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/arel/visitors/to_sql_spec.rb b/spec/arel/visitors/to_sql_spec.rb index 1d78395b2f..554b69a5bd 100644 --- a/spec/arel/visitors/to_sql_spec.rb +++ b/spec/arel/visitors/to_sql_spec.rb @@ -13,6 +13,10 @@ module Arel @visitor.accept attr end + it "should visit_TrueClass" do + @visitor.accept(@attr.eq(true)).should be_like %{ "users"."id" = 't' } + end + describe "Nodes::In" do it "should know how to visit" do node = @attr.in [1, 2, 3] |