aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-17 20:23:44 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-11-17 23:00:16 -0200
commit4525b976058c43df927275da4d651781b0fc8fcb (patch)
tree1ff801daf371929b0d4b0383bd324bdf377d45b7 /activerecord/test
parentaf43e719ac45ea3f8589b07d4d1d43d8bf0a31e9 (diff)
downloadrails-4525b976058c43df927275da4d651781b0fc8fcb.tar.gz
rails-4525b976058c43df927275da4d651781b0fc8fcb.tar.bz2
rails-4525b976058c43df927275da4d651781b0fc8fcb.zip
Remove not used require and some useless test comments
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb15
1 files changed, 3 insertions, 12 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index e0cde4f7f3..c503c21e27 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -313,26 +313,17 @@ class AttributeMethodsTest < ActiveRecord::TestCase
def test_read_write_boolean_attribute
topic = Topic.new
- # puts ""
- # puts "New Topic"
- # puts topic.inspect
topic.approved = "false"
- # puts "Expecting false"
- # puts topic.inspect
assert !topic.approved?, "approved should be false"
+
topic.approved = "false"
- # puts "Expecting false"
- # puts topic.inspect
assert !topic.approved?, "approved should be false"
+
topic.approved = "true"
- # puts "Expecting true"
- # puts topic.inspect
assert topic.approved?, "approved should be true"
+
topic.approved = "true"
- # puts "Expecting true"
- # puts topic.inspect
assert topic.approved?, "approved should be true"
- # puts ""
end
def test_overridden_write_attribute