File: puppet-lint_spec.rb

package info (click to toggle)
puppet-lint 2.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 928 kB
  • sloc: ruby: 9,051; sh: 395; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 363 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'spec_helper'

describe PuppetLint do
  subject { PuppetLint.new }

  it 'should accept manifests as a string' do
    subject.code = 'class foo { }'
    expect(subject.code).to_not be_nil
  end

  it 'should return empty manifest when empty one given as the input' do
    subject.code = ''
    subject.run
    expect(subject.manifest).to eq('')
  end
end