Sha256: d72066b4b13e92bc776ab2688263db616297b12576b1cbfb655836057fe29d40

Contents?: true

Size: 603 Bytes

Versions: 11

Compression:

Stored size: 603 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 Backend
    class Ssh
      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
end

RSpec.configure do |c|
  c.add_setting :stdout, :default => ''
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
serverspec-0.2.11 spec/spec_helper.rb
serverspec-0.2.10 spec/spec_helper.rb
serverspec-0.2.9 spec/spec_helper.rb
serverspec-0.2.8 spec/spec_helper.rb
serverspec-0.2.7 spec/spec_helper.rb
serverspec-0.2.6 spec/spec_helper.rb
serverspec-0.2.5 spec/spec_helper.rb
serverspec-0.2.4 spec/spec_helper.rb
serverspec-0.2.3 spec/spec_helper.rb
serverspec-0.2.2 spec/spec_helper.rb
serverspec-0.2.1 spec/spec_helper.rb