Skip to content

Commit d2a62aa

Browse files
committed
(PUP-11764) Convert with_environment to integration test
1 parent 9bba6bf commit d2a62aa

File tree

2 files changed

+14
-34
lines changed

2 files changed

+14
-34
lines changed

acceptance/tests/modules/list/with_environment.rb

Lines changed: 0 additions & 34 deletions
This file was deleted.

spec/integration/application/module_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,18 @@
8686
end
8787
end
8888
end
89+
90+
context 'install' do
91+
it 'lists a module in a non-default directory environment' do
92+
Puppet.initialize_settings(['-E', 'direnv'])
93+
Puppet[:color] = false
94+
Puppet[:environmentpath] = File.join(my_fixture_dir, 'environments')
95+
96+
expect {
97+
app.command_line.args = ['list']
98+
app.run
99+
}.to exit_with(0)
100+
.and output(Regexp.new("└── pmtacceptance-nginx".encode(Encoding.default_external), Regexp::MULTILINE)).to_stdout
101+
end
102+
end
89103
end

0 commit comments

Comments
 (0)