Sha256: 3105d118c61eeb33082c57f5be0b66007944ee90403287a74583843d06a1044f
Contents?: true
Size: 998 Bytes
Versions: 1
Compression:
Stored size: 998 Bytes
Contents
require 'spec_helper' describe Ridley::HostConnector::WinRM::Worker do let(:host) { 'reset.riotgames.com' } let(:options) do { winrm: { port: 1234 } } end subject { Ridley::HostConnector::WinRM::Worker.new(host, options) } describe "#winrm_port" do it "can be overridden if options contains :winrm_port" do subject.winrm_port.should eq(1234) end it "defaults to Ridley::HostConnector::DEFAULT_WINRM_PORT when not overridden" do options.delete(:winrm) subject.winrm_port.should eq(Ridley::HostConnector::DEFAULT_WINRM_PORT) end end describe "#winrm" do it "returns a WinRM::WinRMWebService" do subject.winrm.should be_a(WinRM::WinRMWebService) end end describe "#get_command" do let(:command) { "echo %TEMP%" } context "when a command is less than 2047 characters" do it "returns the command" do subject.get_command(command).should eq(command) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ridley-0.10.0.rc1 | spec/unit/ridley/host_connector/winrm/worker_spec.rb |