Sha256: 730dd1fc9d84851db8fb1ce5a1eca3cabff94c121849c71d4973a8e9190fdb2b
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
require 'serverspec' require 'pathname' PROJECT_ROOT = (Pathname.new(File.dirname(__FILE__)) + '..').expand_path Dir[PROJECT_ROOT.join("spec/support/**/*.rb")].each { |file| require(file) } module Serverspec module SshHelper def do_check(cmd) if cmd =~ /invalid/ { :stdout => '', :stderr => '', :exit_code => 1, :exit_signal => nil } else { :stdout => ::RSpec.configuration.stdout, :stderr => '', :exit_code => 0, :exit_signal => nil } end end end end RSpec.configure do |c| c.add_setting :stdout, :default => '' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
serverspec-0.1.7 | spec/spec_helper.rb |