Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoid method redefined; discarding old empty? warning [#4302 state:co…

…mmitted]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
commit c10958fbddb22052e7cbe5fe6b825cda3cb26e48 1 parent 7d0eea1
@spastorino spastorino authored jeremy committed
View
1  activesupport/test/abstract_unit.rb
@@ -10,6 +10,7 @@
require 'test/unit'
require 'active_support/core_ext/kernel/reporting'
+require 'empty_bool'
silence_warnings { require 'mocha' }
View
8 activesupport/test/core_ext/blank_test.rb
@@ -1,14 +1,6 @@
require 'abstract_unit'
require 'active_support/core_ext/object/blank'
-class EmptyTrue
- def empty?() true; end
-end
-
-class EmptyFalse
- def empty?() false; end
-end
-
class BlankTest < Test::Unit::TestCase
BLANK = [ EmptyTrue.new, nil, false, '', ' ', " \n\t \r ", [], {} ]
NOT = [ EmptyFalse.new, Object.new, true, 0, 1, 'a', [nil], { nil => 0 } ]
View
7 activesupport/test/empty_bool.rb
@@ -0,0 +1,7 @@
+class EmptyTrue
+ def empty?() true; end
+end
+
+class EmptyFalse
+ def empty?() false; end
+end
View
8 activesupport/test/test_test.rb
@@ -86,14 +86,6 @@ def default_test; end
end
end
-class EmptyTrue
- def empty?() true; end
-end
-
-class EmptyFalse
- def empty?() false; end
-end
-
class AssertBlankTest < ActiveSupport::TestCase
BLANK = [ EmptyTrue.new, nil, false, '', ' ', " \n\t \r ", [], {} ]
NOT_BLANK = [ EmptyFalse.new, Object.new, true, 0, 1, 'x', [nil], { nil => 0 } ]
Please sign in to comment.
Something went wrong with that request. Please try again.