File: test_helper.rb

package info (click to toggle)
ruby-kubeclient 3.1.2-1~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 664 kB
  • sloc: ruby: 2,734; makefile: 3
file content (11 lines) | stat: -rw-r--r-- 365 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
require 'minitest/autorun'
#require 'minitest/rg'
require 'webmock/minitest'
require 'json'
require 'kubeclient'

# Assumes test files will be in a subdirectory with the same name as the
# file suffix.  e.g. a file named foo.json would be a "json" subdirectory.
def open_test_file(name)
  File.new(File.join(File.dirname(__FILE__), name.split('.').last, name))
end