spec/spec_helper.rb in vagrant-winrm-0.6.0 vs spec/spec_helper.rb in vagrant-winrm-0.7.0
- old
+ new
@@ -17,11 +17,16 @@
let(:winrm_config) {
double('winrm_config', host: 'winrm_super_host', port: 32424, username: 'usern@me', password: 'p4ssw0rd').tap do |config|
allow(config).to receive(:[]) { |key| config.send(key) }
end
}
+ let(:rdp_config) {
+ double('rdp_config', port: 4321, search_port: 98765).tap do |config|
+ allow(config).to receive(:[]) { |key| config.send(key) }
+ end
+ }
let(:config_vm) { double('config_vm', communicator: :winrm) }
- let(:machine_config) { double('machine_config', winrm: winrm_config, vm: config_vm) }
+ let(:machine_config) { double('machine_config', winrm: winrm_config, rdp: rdp_config, vm: config_vm) }
let(:provider) {
double('provider', to_sym: :virtualbox).tap do |provider|
allow(provider).to receive(:capability?).and_return(true)
allow(provider).to receive(:capability).with(:winrm_info).and_return(winrm_config)