Sha256: 6561af320fa9d03e2a8772e7c913c90ede3cb11e035a5c0dfa08c2d29face2c1

Contents?: true

Size: 322 Bytes

Versions: 20

Compression:

Stored size: 322 Bytes

Contents

require 'spec_helper'

RSpec.configure do |c|
  c.os = 'SmartOS'
end

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

20 entries across 20 versions & 1 rubygems

Version Path
serverspec-0.11.1 spec/smartos/mail_alias_spec.rb
serverspec-0.11.0 spec/smartos/mail_alias_spec.rb
serverspec-0.10.13 spec/smartos/mail_alias_spec.rb
serverspec-0.10.12 spec/smartos/mail_alias_spec.rb
serverspec-0.10.11 spec/smartos/mail_alias_spec.rb
serverspec-0.10.10 spec/smartos/mail_alias_spec.rb
serverspec-0.10.9 spec/smartos/mail_alias_spec.rb
serverspec-0.10.8 spec/smartos/mail_alias_spec.rb
serverspec-0.10.7 spec/smartos/mail_alias_spec.rb
serverspec-0.10.6 spec/smartos/mail_alias_spec.rb
serverspec-0.10.5 spec/smartos/mail_alias_spec.rb
serverspec-0.10.4 spec/smartos/mail_alias_spec.rb
serverspec-0.10.3 spec/smartos/mail_alias_spec.rb
serverspec-0.10.2 spec/smartos/mail_alias_spec.rb
serverspec-0.10.1 spec/smartos/mail_alias_spec.rb
serverspec-0.10.0 spec/smartos/mail_alias_spec.rb
serverspec-0.9.8 spec/smartos/mail_alias_spec.rb
serverspec-0.9.7 spec/smartos/mail_alias_spec.rb
serverspec-0.9.6 spec/smartos/mail_alias_spec.rb
serverspec-0.9.5 spec/smartos/mail_alias_spec.rb