diff --git a/test/immigrant_test.rb b/test/immigrant_test.rb index 7cf1d0b..54e0504 100644 --- a/test/immigrant_test.rb +++ b/test/immigrant_test.rb @@ -353,7 +353,7 @@ class Author < MockModel has_many :books, :finder_sql => <<-SQL SELECT * FROM books - WHERE author_id = \#{id} + WHERE author_id = \\\#{id} ORDER BY RANDOM() LIMIT 5' SQL end