require 'spec_helper_system'

describe 'basic tests' do
  it 'class should work without errors' do
    pp = <<-EOS
      class { 'updatemotd': }
    EOS

    puppet_apply(pp) do |r|
      r.exit_code.should == 2
    end
  end
end

require 'spec_helper_system'

describe 'basic tests' do
  it 'class should work without errors' do
    pp = <<-EOS
      class { 'updatemotd': }
    EOS

    puppet_apply(pp) do |r|
      r.exit_code.should == 0
    end
  end
end

Adjust exit code for basic spec:system test
Adjust exit code for basic spec:system test

This class shouldn't make any changes when applied to a fresh system because
the default manifest behaviour matches the stock install.
