┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/contextmenu/test/test_helper.rb
blob: b4e4dded2b70264b520939047715ebcc4b6c0781 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-FileCopyrightText: 2019 Harald Sitter <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-or-later

$LOAD_PATH.unshift(File.absolute_path('../', __dir__)) # ../

def __test_method_name__
  return @method_name if defined?(:@method_name)
  index = 0
  caller = ''
  until caller.start_with?('test_')
    caller = caller_locations(index, 1)[0].label
    index += 1
  end
  caller
end

require 'test/unit'