aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-11 20:36:29 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-12-11 20:40:04 -0200
commit59b7203180edd2424f4b78fc934e92cff0d391fa (patch)
tree54b3e68f907d837a970a102754377d99e34c7583 /activesupport/test/core_ext
parentc9b8ca97481fd88534cbe11c45181f3043a560ec (diff)
downloadrails-59b7203180edd2424f4b78fc934e92cff0d391fa.tar.gz
rails-59b7203180edd2424f4b78fc934e92cff0d391fa.tar.bz2
rails-59b7203180edd2424f4b78fc934e92cff0d391fa.zip
Remove not necessary file, move constants to the file they are used
File 'empty_bool.rb' was introduced around 4 years ago in c10958fbddb22052e7cbe5fe6b825cda3cb26e48 to remove method redefined warning in AS test suite, however we do not have such need for reuse anymore, so we can safely move the constants back to the file where they are currently used and get rid of the extra file/require.
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r--activesupport/test/core_ext/blank_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/blank_test.rb b/activesupport/test/core_ext/blank_test.rb
index a68c074777..3e3176f993 100644
--- a/activesupport/test/core_ext/blank_test.rb
+++ b/activesupport/test/core_ext/blank_test.rb
@@ -4,6 +4,14 @@ require 'abstract_unit'
require 'active_support/core_ext/object/blank'
class BlankTest < ActiveSupport::TestCase
+ class EmptyTrue
+ def empty?() true; end
+ end
+
+ class EmptyFalse
+ def empty?() false; end
+ end
+
BLANK = [ EmptyTrue.new, nil, false, '', ' ', " \n\t \r ", ' ', [], {} ]
NOT = [ EmptyFalse.new, Object.new, true, 0, 1, 'a', [nil], { nil => 0 } ]