Sha256: 7392d6e6a55e9b9ae33ea9bb279b1d26697dd2b31a7f4d840a8b48fa572eef8a
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
# encoding: UTF-8 require "gjp" require "gjp/logger" Gjp::Logger.log.level = ::Logger::DEBUG # creates an executable in kit that will print its parameters # in a test_out file for checking. Returns mocked executable # full path def mock_executable(executable_name, project_path) Dir.chdir(project_path) do bin_dir = File.join("kit", executable_name, "bin") FileUtils.mkdir_p(bin_dir) executable_path = File.join(bin_dir, executable_name) File.open(executable_path, "w") { |io| io.puts "echo $0 $*>test_out" } File.chmod(0777, executable_path) executable_path end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gjp-0.29.0 | spec/spec_helper.rb |
gjp-0.28.0 | spec/spec_helper.rb |