Sha256: 40ea0517803fd39e77901d3dca3cf37b7ce49a4334191fd07bf01ec6cbb7f715

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::RedHat

describe mail_alias('daemon') do
  it { should be_aliased_to "root" }
  its(:command) { should eq "getent aliases \\^daemon | grep -- \\[\\[:space:\\]\\]root$" }
end

describe mail_alias('invalid-recipient') do
  it { should_not be_aliased_to "foo" }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serverspec-0.8.0 spec/redhat/mail_alias_spec.rb