From 2753ffc63e70016f07b871c32c98f06dc35a781a Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Tue, 17 Mar 2015 18:38:23 +0900 Subject: Test files should be named *_test.rb to be executed via rake task --- activesupport/test/core_ext/secure_random_test.rb | 20 ++++++++++++++++++++ activesupport/test/core_ext/securerandom.rb | 20 -------------------- 2 files changed, 20 insertions(+), 20 deletions(-) create mode 100644 activesupport/test/core_ext/secure_random_test.rb delete mode 100644 activesupport/test/core_ext/securerandom.rb (limited to 'activesupport/test') diff --git a/activesupport/test/core_ext/secure_random_test.rb b/activesupport/test/core_ext/secure_random_test.rb new file mode 100644 index 0000000000..dfacb7fe9f --- /dev/null +++ b/activesupport/test/core_ext/secure_random_test.rb @@ -0,0 +1,20 @@ +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 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 -- cgit v1.2.3