From 979521f01f89efd5798ff71ea2bf0269ccf0f3cf Mon Sep 17 00:00:00 2001 From: robertomiranda Date: Fri, 24 Apr 2015 10:31:57 -0500 Subject: [PATCH] Fix Test environment for Rails 4 --- gemfiles/rails4_0.gemfile | 1 + has_secure_token.gemspec | 2 +- test/has_secure_password_test.rb | 2 +- test/securerandom_test.rb | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gemfiles/rails4_0.gemfile b/gemfiles/rails4_0.gemfile index ad23a17..53af50c 100644 --- a/gemfiles/rails4_0.gemfile +++ b/gemfiles/rails4_0.gemfile @@ -3,4 +3,5 @@ gemspec :path => '../' group :development, :test do gem 'activerecord', '~> 4.0.0' + gem 'minitest', '~> 4.2' end diff --git a/has_secure_token.gemspec b/has_secure_token.gemspec index d56a96c..8a167a8 100644 --- a/has_secure_token.gemspec +++ b/has_secure_token.gemspec @@ -22,6 +22,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "rake" - spec.add_development_dependency "minitest", "~> 5.4.2" + spec.add_development_dependency "minitest" spec.add_development_dependency 'sqlite3' end diff --git a/test/has_secure_password_test.rb b/test/has_secure_password_test.rb index b24c71d..754e553 100644 --- a/test/has_secure_password_test.rb +++ b/test/has_secure_password_test.rb @@ -1,6 +1,6 @@ require "test_helper" -class SecureTokenTest < Minitest::Test +class SecureTokenTest < MiniTest::Unit::TestCase def setup @user = User.new end diff --git a/test/securerandom_test.rb b/test/securerandom_test.rb index 757a14d..48797ed 100644 --- a/test/securerandom_test.rb +++ b/test/securerandom_test.rb @@ -1,6 +1,6 @@ require "test_helper" -class SecureRandomTest < Minitest::Test +class SecureRandomTest < MiniTest::Unit::TestCase def test_base58 s1 = SecureRandom.base58 s2 = SecureRandom.base58