fix: make unit tests work with CODE_PRELOADER_DETECT=no
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bde15cfd25
commit
b60f030824
4 changed files with 20 additions and 17 deletions
|
@ -12,10 +12,11 @@ ignore_list:
|
|||
- complex/ignore2
|
||||
|
||||
# Path to the output file (if null, output to STDOUT)
|
||||
output_file_path: complex_output.txt
|
||||
output_path: complex_output.txt
|
||||
|
||||
# Optional: Path to a file containing the header prompt
|
||||
header_prompt_file_path: null
|
||||
prompt:
|
||||
# Optional: Path to a file containing the header prompt
|
||||
header_path: null
|
||||
|
||||
# Optional: Path to a file containing the footer prompt
|
||||
footer_prompt_file_path: null
|
||||
# Optional: Path to a file containing the footer prompt
|
||||
footer_path: null
|
||||
|
|
|
@ -11,10 +11,11 @@ ignore_list:
|
|||
- simple/ignore
|
||||
|
||||
# Path to the output file (if null, output to STDOUT)
|
||||
output_file_path: simple_output.txt
|
||||
output_path: simple_output.txt
|
||||
|
||||
# Optional: Path to a file containing the header prompt
|
||||
header_prompt_file_path: null
|
||||
prompt:
|
||||
# Optional: Path to a file containing the header prompt
|
||||
header_path: null
|
||||
|
||||
# Optional: Path to a file containing the footer prompt
|
||||
footer_prompt_file_path: null
|
||||
# Optional: Path to a file containing the footer prompt
|
||||
footer_path: null
|
||||
|
|
|
@ -50,7 +50,7 @@ describe CodePreloader::Config do
|
|||
config.subcommand.should eq(Config::Subcommand::Pack)
|
||||
config.pack_options.should be_truthy
|
||||
config.pack_options.try do |opts|
|
||||
opts.repository_path_list.should eq ["path/to/repo1", "path/to/repo2"]
|
||||
opts.source_list.should eq ["path/to/repo1", "path/to/repo2"]
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -72,7 +72,7 @@ describe CodePreloader::Config do
|
|||
config.subcommand.should eq(Config::Subcommand::Pack)
|
||||
config.pack_options.should be_truthy
|
||||
config.pack_options.try do |opts|
|
||||
opts.output_file_path.should eq "output.txt"
|
||||
opts.output_path.should eq "output.txt"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -88,9 +88,9 @@ describe CodePreloader::Config do
|
|||
# Assuming the simple_config.yml has specific settings
|
||||
config.pack_options.should be_truthy
|
||||
config.pack_options.try do |opts|
|
||||
opts.repository_path_list.should eq ["path/to/repo"]
|
||||
opts.source_list.should eq ["path/to/repo"]
|
||||
opts.ignore_list.should eq ["simple/ignore"]
|
||||
opts.output_file_path.should eq "simple_output.txt"
|
||||
opts.output_path.should eq "simple_output.txt"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -103,9 +103,9 @@ describe CodePreloader::Config do
|
|||
# Assuming the complex_config.yml has specific settings
|
||||
config.pack_options.should be_truthy
|
||||
config.pack_options.try do |opts|
|
||||
opts.repository_path_list.should eq [repo_path]
|
||||
opts.source_list.should eq [repo_path]
|
||||
opts.ignore_list.should eq ["complex/ignore1", "complex/ignore2"]
|
||||
opts.output_file_path.should eq "complex_output.txt"
|
||||
opts.output_path.should eq "complex_output.txt"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
require "spec"
|
||||
|
||||
# require "../src/"
|
||||
ENV["CODE_PRELOADER_DETECT"] = "no"
|
||||
|
||||
|
|
Loading…
Reference in a new issue