1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Jeremy Kemper 2005-11-19 10:00:14 +00:00
parent 2ed6d365bb
commit 77e0b7986e

View file

@ -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