Skip to content

Commit

Permalink
Default test to Minitest::Test
Browse files Browse the repository at this point in the history
  • Loading branch information
paarthmadan committed Dec 14, 2021
1 parent 49a212f commit 96d1f1d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions test/test_helper.rb
@@ -1,19 +1,14 @@
require 'minitest/autorun'
TEST_CASE = defined?(Minitest::Test) ? Minitest::Test : MiniTest::Unit::TestCase

# TODO: Remove these aliases and update tests accordingly.
class TEST_CASE
def assert_nothing_raised(*args)
yield
end
end

require 'bundler/setup'
require 'i18n'
require 'mocha/setup'
require 'test_declarative'

class I18n::TestCase < TEST_CASE
class I18n::TestCase < Minitest::Test
def assert_nothing_raised(*args)
yield
end

def self.key_value?
defined?(ActiveSupport)
end
Expand Down

0 comments on commit 96d1f1d

Please sign in to comment.