Sha256: ecf20400bbc5c7f98e0ed8200ffad66afe5dbdd93a4efb55756ae9cbbb35c618
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
# encoding: UTF-8 require 'rubygems' require 'bundler/setup' require 'winrm' require 'json' require_relative '../matchers' # Unit test spec helper module SpecUnitHelper def stubbed_response(file) File.read("tests/spec/stubs/responses/#{file}") end def stubbed_clixml(file) File.read("tests/spec/stubs/clixml/#{file}") end def default_connection_opts { user: 'Administrator', password: 'password', endpoint: 'http://localhost:5985/wsman', max_envelope_size: 153600, session_id: '05A2622B-B842-4EB8-8A78-0225C8A993DF', operation_timeout: 60, locale: 'en-US' } end end # Strip leading whitespace from each line that is the same as the # amount of whitespace on the first line of the string. # Leaves _additional_ indentation on later lines intact. # and remove newlines. class String def unindent gsub(/^#{self[/\A[ \t]*/]}/, '').delete("\n") end def to_byte_string force_encoding(Encoding::ASCII_8BIT) end end RSpec.configure do |config| config.include(SpecUnitHelper) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
winrm-2.1.0 | tests/spec/spec_helper.rb |