Load the environment variable to the Walter configuration files.
We follow the format of environment varibale as the discussion in terraform
messenger:
type: ${env.MESSENGER_TYPE}
Load the environment variable to the Walter configuration files.
We follow the format of environment varibale as the discussion in terraform
messenger:
type: ${env.MESSENGER_TYPE}
test do | |
system "#{bin}/redpen", "-version" | |
file_name = "sampledoc-en.txt" | |
path = "#{libexec}/sample-doc/en/#{file_name}" | |
output = `#{bin}/redpen -c #{libexec}/conf/redpen-conf-en.xml #{path}` | |
errors = output.split("\n").select { |line| line.start_with?(file_name) } | |
assert errors.find{|e|(e.start_with?("#{file_name}:1: ValidationError[SymbolWithSpace]"))} | |
end |