Sha256: fc206869cf6ee66f7e13f044021fddd66acefb14d1a782070732f6b3c6652eb1

Contents?: true

Size: 624 Bytes

Versions: 38

Compression:

Stored size: 624 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Darwin

describe 'Serverspec command matchers of Darwin 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/darwin/command_spec.rb
serverspec-0.6.15 spec/darwin/command_spec.rb
serverspec-0.6.13 spec/darwin/command_spec.rb
serverspec-0.6.12 spec/darwin/command_spec.rb
serverspec-0.6.11 spec/darwin/command_spec.rb
serverspec-0.6.10 spec/darwin/command_spec.rb
serverspec-0.6.9 spec/darwin/command_spec.rb
serverspec-0.6.8 spec/darwin/command_spec.rb
serverspec-0.6.7 spec/darwin/command_spec.rb
serverspec-0.6.6 spec/darwin/command_spec.rb
serverspec-0.6.5 spec/darwin/command_spec.rb
serverspec-0.6.4 spec/darwin/command_spec.rb
serverspec-0.6.3 spec/darwin/command_spec.rb
serverspec-0.6.2 spec/darwin/command_spec.rb
serverspec-0.6.1 spec/darwin/command_spec.rb
serverspec-0.6.0 spec/darwin/command_spec.rb
serverspec-0.5.8 spec/darwin/command_spec.rb
serverspec-0.5.7 spec/darwin/command_spec.rb
serverspec-0.5.6 spec/darwin/command_spec.rb
serverspec-0.5.5 spec/darwin/command_spec.rb