Sha256: 04f46498abe072501fe1385ca1c945da57cb79604ca80dca62b5643aa441b1b9

Contents?: true

Size: 624 Bytes

Versions: 38

Compression:

Stored size: 624 Bytes

Contents

require 'spec_helper'

include Serverspec::Helper::Gentoo

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