diff options
-rw-r--r-- | test/visitors/test_to_sql.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/visitors/test_to_sql.rb b/test/visitors/test_to_sql.rb index 5d5a351737..65d36bc004 100644 --- a/test/visitors/test_to_sql.rb +++ b/test/visitors/test_to_sql.rb @@ -248,9 +248,8 @@ module Arel end it "unsupported input should not raise ArgumentError" do - assert_raises(RuntimeError) do - compile(nil) - end + error = assert_raises(RuntimeError) { compile(nil) } + assert_match /\Aunsupported/, error.message end it "should visit_Arel_SelectManager, which is a subquery" do |