Correct way to start RSpec-puppet unit tests
问题 I have created a simple Puppet 4 class and a unit test to go along with it as follows (after executing touch metadata.json; rspec-puppet-init while in modules/test/ ): # modules/test/manifests/hello_world1.pp class test::hello_world1 { file { "/tmp/hello_world1": content => "Hello, world!\n" } } # modules/test/spec/classes/test__hello_world1_spec.rb require 'spec_helper' describe 'test::hello_world1' do it { is_expected.to compile } it { is_expected.to contain_file('/tmp/hello_world1')\ .with