Skip to content

Commit

Permalink
Port windows helper
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Aug 30, 2021
1 parent 077e4ae commit c8a44e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/lib/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,13 @@
require_relative "core_assertions"

Test::Unit::TestCase.include Test::Unit::CoreAssertions

module Test
module Unit
class TestCase
def windows? platform = RUBY_PLATFORM
/mswin|mingw/ =~ platform
end
end
end
end

0 comments on commit c8a44e5

Please sign in to comment.