aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/securerandom.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2015-03-17 18:38:23 +0900
committerAkira Matsuda <ronnie@dio.jp>2015-03-20 17:27:38 +0900
commit2753ffc63e70016f07b871c32c98f06dc35a781a (patch)
tree454a50d41f0b5ccbb6c62d0a7b5996f0bac9e529 /activesupport/test/core_ext/securerandom.rb
parenta1d042bea1d3b6d2e41356b3240e3e146823c19b (diff)
downloadrails-2753ffc63e70016f07b871c32c98f06dc35a781a.tar.gz
rails-2753ffc63e70016f07b871c32c98f06dc35a781a.tar.bz2
rails-2753ffc63e70016f07b871c32c98f06dc35a781a.zip
Test files should be named *_test.rb to be executed via rake task
Diffstat (limited to 'activesupport/test/core_ext/securerandom.rb')
-rw-r--r--activesupport/test/core_ext/securerandom.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/activesupport/test/core_ext/securerandom.rb b/activesupport/test/core_ext/securerandom.rb
deleted file mode 100644
index dfacb7fe9f..0000000000
--- a/activesupport/test/core_ext/securerandom.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-require 'abstract_unit'
-require 'active_support/core_ext/securerandom'
-
-class SecureRandomTest < ActiveSupport::TestCase
- def test_base58
- s1 = SecureRandom.base58
- s2 = SecureRandom.base58
-
- assert_not_equal s1, s2
- assert_equal 16, s1.length
- end
-
- def test_base58_with_length
- s1 = SecureRandom.base58(24)
- s2 = SecureRandom.base58(24)
-
- assert_not_equal s1, s2
- assert_equal 24, s1.length
- end
-end