test/zold/stress/test_bin.rb in zold-stress-0.3.0 vs test/zold/stress/test_bin.rb in zold-stress-0.4.0

- old
+ new

@@ -31,10 +31,10 @@ # Author:: Yegor Bugayenko (yegor256@gmail.com) # Copyright:: Copyright (c) 2018 Yegor Bugayenko # License:: MIT class TestBin < Minitest::Test Dir.new('fixtures/scripts').select { |f| f =~ /\.sh$/ && !f.start_with?('_') }.each do |f| - define_method("test_script_#{f.gsub(/[^a-z]/, '_')}") do + define_method("test_#{f.gsub(/\.sh$/, '').gsub(/[^a-z]/, '_')}") do start = Time.now test_log.debug("\n\n#{f} running...") Dir.mktmpdir do |dir| FileUtils.cp('fixtures/id_rsa.pub', dir) FileUtils.cp('fixtures/id_rsa', dir)