diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-04-29 19:39:53 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-04-29 19:39:53 -0300 |
commit | 19d2ff83db5232a816dee201800baf3924705b31 (patch) | |
tree | 0216e13d506a258e0678c234aa1a6a86a81f6c45 /activerecord/lib/active_record/test_case.rb | |
parent | 090539604b7685d838302c1773520622d87bd3d7 (diff) | |
download | rails-19d2ff83db5232a816dee201800baf3924705b31.tar.gz rails-19d2ff83db5232a816dee201800baf3924705b31.tar.bz2 rails-19d2ff83db5232a816dee201800baf3924705b31.zip |
Calculations now use Arel to construct the query.
Implemented other methods in AR::Base with Arel support.
Diffstat (limited to 'activerecord/lib/active_record/test_case.rb')
-rw-r--r-- | activerecord/lib/active_record/test_case.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/test_case.rb b/activerecord/lib/active_record/test_case.rb index b790eb4343..2dfe2c09ea 100644 --- a/activerecord/lib/active_record/test_case.rb +++ b/activerecord/lib/active_record/test_case.rb @@ -20,7 +20,7 @@ module ActiveRecord patterns_to_match.each do |pattern| failed_patterns << pattern unless $queries_executed.any?{ |sql| pattern === sql } end - assert failed_patterns.empty?, "Query pattern(s) #{failed_patterns.map(&:inspect).join(', ')} not found in #{$queries_executed}" + assert failed_patterns.empty?, "Query pattern(s) #{failed_patterns.map(&:inspect).join(', ')} not found.#{$queries_executed.size == 0 ? '' : "\nQueries:\n#{$queries_executed.join("\n")}"}" end def assert_queries(num = 1) |