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-1.0.0 spec/redhat/mail_alias_spec.rb
serverspec-0.16.0 spec/redhat/mail_alias_spec.rb
serverspec-0.15.5 spec/redhat/mail_alias_spec.rb
serverspec-0.15.4 spec/redhat/mail_alias_spec.rb
serverspec-0.15.3 spec/redhat/mail_alias_spec.rb
serverspec-0.15.2 spec/redhat/mail_alias_spec.rb
serverspec-0.15.1 spec/redhat/mail_alias_spec.rb
serverspec-0.15.0 spec/redhat/mail_alias_spec.rb
serverspec-0.14.4 spec/redhat/mail_alias_spec.rb
serverspec-0.14.3 spec/redhat/mail_alias_spec.rb
serverspec-0.14.2 spec/redhat/mail_alias_spec.rb
serverspec-0.14.1 spec/redhat/mail_alias_spec.rb
serverspec-0.14.0 spec/redhat/mail_alias_spec.rb
serverspec-0.13.7 spec/redhat/mail_alias_spec.rb
serverspec-0.13.6 spec/redhat/mail_alias_spec.rb
serverspec-0.13.5 spec/redhat/mail_alias_spec.rb
serverspec-0.13.4 spec/redhat/mail_alias_spec.rb
serverspec-0.13.3 spec/redhat/mail_alias_spec.rb
serverspec-0.13.2 spec/redhat/mail_alias_spec.rb
serverspec-0.13.1 spec/redhat/mail_alias_spec.rb