Sha256: 7a482c3a6c2e805ac986754e0b4db6ea45d012a47494f1eb4cbba56f2b887821

Contents?: true

Size: 625 Bytes

Versions: 38

Compression:

Stored size: 625 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::RedHat

describe 'Serverspec command matchers of Red Hat family' do
  it_behaves_like 'support command return_stdout matcher', 'cat /etc/resolv.conf', 'localhost'
  it_behaves_like 'support command return_stdout matcher with regexp', 'cat /etc/resolv.conf', /localhost/

  it_behaves_like 'support command return_stderr matcher', 'cat /foo', 'cat: /foo: No such file or directory'
  it_behaves_like 'support command return_stderr matcher with regexp', 'cat /foo', /No such file or directory/

  it_behaves_like 'support command return_exit_status matcher', 'ls /tmp', 0
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
serverspec-0.6.16 spec/redhat/command_spec.rb
serverspec-0.6.15 spec/redhat/command_spec.rb
serverspec-0.6.13 spec/redhat/command_spec.rb
serverspec-0.6.12 spec/redhat/command_spec.rb
serverspec-0.6.11 spec/redhat/command_spec.rb
serverspec-0.6.10 spec/redhat/command_spec.rb
serverspec-0.6.9 spec/redhat/command_spec.rb
serverspec-0.6.8 spec/redhat/command_spec.rb
serverspec-0.6.7 spec/redhat/command_spec.rb
serverspec-0.6.6 spec/redhat/command_spec.rb
serverspec-0.6.5 spec/redhat/command_spec.rb
serverspec-0.6.4 spec/redhat/command_spec.rb
serverspec-0.6.3 spec/redhat/command_spec.rb
serverspec-0.6.2 spec/redhat/command_spec.rb
serverspec-0.6.1 spec/redhat/command_spec.rb
serverspec-0.6.0 spec/redhat/command_spec.rb
serverspec-0.5.8 spec/redhat/command_spec.rb
serverspec-0.5.7 spec/redhat/command_spec.rb
serverspec-0.5.6 spec/redhat/command_spec.rb
serverspec-0.5.5 spec/redhat/command_spec.rb