Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

r3178@asus: jeremy | 2005-11-19 01:59:47 -0800

 Apply [3094] to stable.  Use query methods rather than readers in boolean tests for [3092].  References #2949.


git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@3095 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit bed4fec60ee4bc9df9afe7bbb66a63fd19104005 1 parent fe09fa2
@jeremy jeremy authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/test/base_test.rb
View
8 activerecord/test/base_test.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.