Sha256: 6fd2c8e3da709c0981df363b8bcdb51222cc00a92b66cd26bd9fbadc1a7198c2

Contents?: true

Size: 310 Bytes

Versions: 42

Compression:

Stored size: 310 Bytes

Contents

require 'spec_helper'

include SpecInfra::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

42 entries across 42 versions & 1 rubygems

Version Path
serverspec-0.13.0 spec/redhat/mail_alias_spec.rb
serverspec-0.12.0 spec/redhat/mail_alias_spec.rb