aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorTobias Lütke <tobias.luetke@gmail.com>2005-12-23 19:47:10 +0000
committerTobias Lütke <tobias.luetke@gmail.com>2005-12-23 19:47:10 +0000
commitaf60120d30157837d92b02953e04131facd1f7de (patch)
treeb1f6867dafb4d121163009f93b841b4229a031bb /actionpack
parent373bc86d2d8bb49bd4dbef1256207f52c8dcb0ac (diff)
downloadrails-af60120d30157837d92b02953e04131facd1f7de.tar.gz
rails-af60120d30157837d92b02953e04131facd1f7de.tar.bz2
rails-af60120d30157837d92b02953e04131facd1f7de.zip
cosmetic change to assert_valid
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/assertions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/assertions.rb b/actionpack/lib/action_controller/assertions.rb
index 00811d24d5..999edc1440 100644
--- a/actionpack/lib/action_controller/assertions.rb
+++ b/actionpack/lib/action_controller/assertions.rb
@@ -304,7 +304,7 @@ module Test #:nodoc:
# ensures that the passed record is valid by active record standards. returns the error messages if not
def assert_valid(record)
clean_backtrace do
- assert record.valid?, record.errors.full_messages
+ assert record.valid?, record.errors.full_messages.join("\n")
end
end