bsdcontrol.rb/test/setup.rb

28 lines
426 B
Ruby
Raw Permalink Normal View History

2024-05-12 05:59:38 +02:00
# frozen_string_literal: true
2024-05-12 05:53:21 +02:00
require "bundler/setup"
2024-03-08 00:27:20 +01:00
require "test/unit"
2024-03-20 22:34:15 +01:00
require "bsdcontrol"
2024-05-13 03:32:55 +02:00
module BSD::Control
class Test < Test::Unit::TestCase
require "fileutils"
include FileUtils
def setup
File.exist?(file) ? rm(file) : nil
touch(file)
end
def teardown
File.exist?(file) ? rm(file) : nil
end
private
def file
File.join(__dir__, "file")
end
end
end