Created
May 14, 2011 02:35
-
-
Save AquaGeek/971813 to your computer and use it in GitHub Desktop.
Rails Lighthouse ticket #6567
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 11b27683dd0de6f25c688de082fab6be05cb5782 Mon Sep 17 00:00:00 2001 | |
From: Dan Pickett <dpickett@enlightsolutions.com> | |
Date: Sat, 12 Mar 2011 10:47:56 -0500 | |
Subject: [PATCH] remove unnecessary count in test | |
causing failures with the latest AREL | |
--- | |
railties/test/application/loading_test.rb | 3 +-- | |
1 files changed, 1 insertions(+), 2 deletions(-) | |
diff --git a/railties/test/application/loading_test.rb b/railties/test/application/loading_test.rb | |
index c340465..cff1d21 100644 | |
--- a/railties/test/application/loading_test.rb | |
+++ b/railties/test/application/loading_test.rb | |
@@ -23,10 +23,9 @@ class LoadingTest < Test::Unit::TestCase | |
setup_ar! | |
p = Post.create(:title => 'omg') | |
- assert_equal 1, Post.count | |
assert_equal 'omg', p.title | |
p = Post.first | |
- assert_equal 'omg', p.title | |
+ assert_equal 'omg', p.try(:title) | |
end | |
def test_models_without_table_do_not_panic_on_scope_definitions_when_loaded | |
-- | |
1.7.1.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment