From 02bf81f198a69b51a758aab96d450fafbcbc347c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 8 Apr 2014 21:19:05 -0700 Subject: fixing bind value tests --- test/visitors/test_bind_visitor.rb | 8 +++----- 1 file 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 -- cgit v1.2.3