aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-11-19 10:00:14 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-11-19 10:00:14 +0000
commit77e0b7986e56e5d1d607aaa05a460709977c8c34 (patch)
tree654d016fceb937a967fc50f0f399253939753ffa
parent2ed6d365bbb2a3e0138add33be964d1cc1705b76 (diff)
downloadrails-77e0b7986e56e5d1d607aaa05a460709977c8c34.tar.gz
rails-77e0b7986e56e5d1d607aaa05a460709977c8c34.tar.bz2
rails-77e0b7986e56e5d1d607aaa05a460709977c8c34.zip
Use query methods rather than readers in boolean tests for [3092]. References #2945. Closes #2949.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rwxr-xr-xactiverecord/test/base_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb
index c819c97f3b..a7b1521d89 100755
--- a/activerecord/test/base_test.rb
+++ b/activerecord/test/base_test.rb
@@ -226,19 +226,19 @@ class BasicsTest < Test::Unit::TestCase
topic.approved = "false"
# puts "Expecting false"
# puts topic.inspect
- assert !topic.approved, "approved should be false"
+ assert !topic.approved?, "approved should be false"
topic.approved = "false"
# puts "Expecting false"
# puts topic.inspect
- assert !topic.approved, "approved should be false"
+ assert !topic.approved?, "approved should be false"
topic.approved = "true"
# puts "Expecting true"
# puts topic.inspect
- assert topic.approved, "approved should be true"
+ assert topic.approved?, "approved should be true"
topic.approved = "true"
# puts "Expecting true"
# puts topic.inspect
- assert topic.approved, "approved should be true"
+ assert topic.approved?, "approved should be true"
# puts ""
end