Skip to content

Commit 07cb4ca

Browse files
committed
(PUP-11764) Convert unmodified_module
1 parent eb24709 commit 07cb4ca

File tree

2 files changed

+13
-21
lines changed

2 files changed

+13
-21
lines changed

acceptance/tests/modules/changes/unmodified_module.rb

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

spec/integration/application/module_spec.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,18 @@
221221
.and output(%r{README}).to_stdout
222222
.and output(pattern).to_stderr
223223
end
224+
225+
it 'reports when there are no changes' do
226+
Puppet.initialize_settings(['-E', 'direnv'])
227+
Puppet[:color] = false
228+
Puppet[:environmentpath] = File.join(my_fixture_dir, 'environments')
229+
nginx_dir = File.join(Puppet[:environmentpath], 'direnv', 'modules', 'nginx')
230+
231+
expect {
232+
app.command_line.args = ['changes', nginx_dir]
233+
app.run
234+
}.to exit_with(0)
235+
.and output(/No modified files/).to_stdout
236+
end
224237
end
225238
end

0 commit comments

Comments
 (0)