Skip to content

Commit

Permalink
add test for TEXDOCS
Browse files Browse the repository at this point in the history
  • Loading branch information
wtsnjp committed Oct 21, 2018
1 parent 6054389 commit f4758b0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions spec/config/environment_variables_spec.rb
Expand Up @@ -155,4 +155,18 @@ def ignore_env_line(config, env)
# NOTE: We skip some examples on Windows because Aruba has a bug with
# the "delete_environment_variable" method on the platform.
# cf. https://github.com/cucumber/aruba/issues/349

context "TEXDOCS" do
before(:each) { set_environment_variable "TEXDOCS", "test1,!!test2//" }
before(:each) { run_texdoc "-dtexdocs", "texlive-en" }

it "should be effective" do
expect(stderr).to include(
debug_line "texdocs",
"texdocs[2] = test1 (index_mandatory=false, recursion_allowed=false)")
expect(stderr).to include(
debug_line "texdocs",
"texdocs[1] = test2 (index_mandatory=true, recursion_allowed=true)")
end
end
end

0 comments on commit f4758b0

Please sign in to comment.