Skip to content

Commit

Permalink
Use query methods rather than readers in boolean tests for [3092]. Re…
Browse files Browse the repository at this point in the history
…ferences #2945.  Closes #2949.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Nov 19, 2005
1 parent 2ed6d36 commit 77e0b79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions activerecord/test/base_test.rb
Expand Up @@ -226,19 +226,19 @@ def test_read_write_boolean_attribute
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

Expand Down

0 comments on commit 77e0b79

Please sign in to comment.