Permalink
Browse files

Remove not used require and some useless test comments

  • Loading branch information...
1 parent af43e71 commit 4525b976058c43df927275da4d651781b0fc8fcb @carlosantoniodasilva carlosantoniodasilva committed Nov 17, 2012
@@ -1,5 +1,3 @@
-require 'active_support/core_ext/object/try'
-
module ActiveRecord
module Calculations
# Count the records.
@@ -313,26 +313,17 @@ def test_read_attribute_when_true
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

0 comments on commit 4525b97

Please sign in to comment.