diff options
-rw-r--r-- | test/visitors/test_bind_visitor.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/visitors/test_bind_visitor.rb b/test/visitors/test_bind_visitor.rb index 4563fddfd1..a04a04f4cb 100644 --- a/test/visitors/test_bind_visitor.rb +++ b/test/visitors/test_bind_visitor.rb @@ -34,7 +34,7 @@ module Arel end def test_visitor_yields_on_binds - visitor = Class.new(Arel::Visitors::Visitor) { + visitor = Class.new(Arel::Visitors::ToSql) { def initialize omg end @@ -48,7 +48,7 @@ module Arel end def test_visitor_only_yields_on_binds - visitor = Class.new(Arel::Visitors::Visitor) { + visitor = Class.new(Arel::Visitors::ToSql) { def initialize omg end @@ -58,9 +58,7 @@ module Arel bp = Arel.sql 'omg' called = false - assert_raises(TypeError) { - visitor.accept(bp, collector) { called = true } - } + visitor.accept(bp, collector) { called = true } refute called end end |