Skip to content

Commit

Permalink
require CoreAssertion in helper file
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 1, 2022
1 parent f02a9a0 commit 2abc026
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
require 'test/unit'

require_relative "lib/core_assertions"
Test::Unit::TestCase.include Test::Unit::CoreAssertions

module DidYouMean
module TestHelper
class << self
Expand Down
3 changes: 0 additions & 3 deletions test/test_ractor_compatibility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

return if not DidYouMean::TestHelper.ractor_compatible?

require_relative "lib/core_assertions"
Test::Unit::TestCase.include Test::Unit::CoreAssertions

class RactorCompatibilityTest < Test::Unit::TestCase
def test_class_name_suggestion_works_in_ractor
assert_ractor(<<~CODE, require_relative: "helper")
Expand Down

0 comments on commit 2abc026

Please sign in to comment.