Skip to content

Commit

Permalink
Make tests pass on Ruby < 2.5
Browse files Browse the repository at this point in the history
FrozenError wasn't added until Ruby 2.5.
  • Loading branch information
jeremyevans committed Feb 17, 2023
1 parent c63195a commit 1321cd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
require 'minitest/autorun'
require 'minitest/mock'

FrozenError = RuntimeError unless defined?(FrozenError)

class Minitest::Spec
# Returns true if line numbers are reported incorrectly in heredocs.
def heredoc_line_number_bug?
Expand Down

0 comments on commit 1321cd2

Please sign in to comment.