Sha256: bb5221a5c06e0ebe5c7b53ea5404f61c23cb9da0fb38fe4686ea556df8ec5abd

Contents?: true

Size: 624 Bytes

Versions: 38

Compression:

Stored size: 624 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Debian

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