have stdlib as the only module in your Puppetfile and use one of its functions eg fact()
do a run spec and witness tests passing
remove stdlib from your Puppetfile, so there's no modules listed at all
do a run spec
Expected result:
test failure due to stdlib being missing
Actual result:
tests keep passing because stdlib module still resides at:
.onceover/etc/puppetlabs/code/environments/production/modules/stdlib
with a symlink to that dir at:
.onceover/spec/fixtures/modules/stdlib
In fact, the debug run still shows it is faithfully maintaining that symlink too:
DEBUG -> Symlinking /Users/jesse/src/puppet/gems/onceover/tmp/control-repos/simple/.onceover/etc/puppetlabs/code/environments/production/modules/stdlib to /Users/jesse/src/puppet/gems/onceover/tmp/control-repos/simple/.onceover/spec/fixtures/modules/stdlib
Steps to reproduce:
run spec
and witness tests passingrun spec
Expected result:
Actual result:
.onceover/etc/puppetlabs/code/environments/production/modules/stdlib
with a symlink to that dir at:.onceover/spec/fixtures/modules/stdlib
In fact, the debug run still shows it is faithfully maintaining that symlink too:
DEBUG -> Symlinking /Users/jesse/src/puppet/gems/onceover/tmp/control-repos/simple/.onceover/etc/puppetlabs/code/environments/production/modules/stdlib to /Users/jesse/src/puppet/gems/onceover/tmp/control-repos/simple/.onceover/spec/fixtures/modules/stdlib