spec/support_spec.rb in puppet-debugger-0.19.0 vs spec/support_spec.rb in puppet-debugger-1.0.0

- old
+ new

@@ -19,23 +19,23 @@ let(:puppet_version) do debugger.puppet_lib_dir.scan(debugger.mod_finder).flatten.last end let(:manifest_file) do - file = File.open('/tmp/debugger_puppet_manifest.pp', 'w') do |f| + File.open('/tmp/debugger_puppet_manifest.pp', 'w') do |f| f.write(manifest_code) end '/tmp/debugger_puppet_manifest.pp' end let(:manifest_code) do - <<-EOF + <<-OUT file{'/tmp/test.txt': ensure => absent } \n notify{'hello_there':} \n service{'httpd': ensure => running}\n - EOF + OUT end after(:each) do # manifest_file.close end @@ -59,8 +59,6 @@ it 'should return a list of facts' do expect(debugger.node.facts.values).to be_instance_of(Hash) expect(debugger.node.facts.values['fqdn']).to eq('foo.example.com') end - - end