|
53 | 53 | end
|
54 | 54 | end
|
55 | 55 |
|
56 |
| - describe '#supports?(:vmrc_console)' do |
57 |
| - it 'returns false if type is not supported' do |
58 |
| - allow(@vm).to receive(:console_supported?).with('VMRC').and_return(false) |
59 |
| - |
60 |
| - expect(@vm.supports?(:vmrc_console)).to be_falsey |
61 |
| - expect(@vm.unsupported_reason(:vmrc_console)).to include('VMRC Console not supported') |
62 |
| - end |
63 |
| - |
64 |
| - it 'supports it if all conditions are met' do |
65 |
| - allow(@vm).to receive(:console_supported?).with('VMRC').and_return(true) |
66 |
| - |
67 |
| - expect(@vm.supports?(:vmrc_console)).to be_truthy |
68 |
| - end |
69 |
| - end |
70 |
| - |
71 |
| - describe '#supports?(:html5_console)' do |
72 |
| - it 'supports it if all conditions are met' do |
73 |
| - allow(@vm).to receive(:console_supported?).and_return(true) |
74 |
| - expect(@vm.supports?(:html5_console)).to be_truthy |
75 |
| - end |
76 |
| - |
77 |
| - it 'returns false if type is not supported' do |
78 |
| - allow(@vm).to receive(:console_supported?).and_return(false) |
79 |
| - expect(@vm.supports?(:html5_console)).to be_falsey |
80 |
| - expect(@vm.unsupported_reason(:html5_console)).to include('HTML5 Console is not supported') |
81 |
| - end |
82 |
| - end |
83 |
| - |
84 |
| - describe '#supports?(:native_console)' do |
85 |
| - it 'returns false if type is not supported' do |
86 |
| - allow(@vm).to receive(:console_supported?).with('NATIVE').and_return(false) |
87 |
| - |
88 |
| - expect(@vm.supports?(:native_console)).to be_falsey |
89 |
| - expect(@vm.unsupported_reason(:native_console)).to include('NATIVE Console not supported') |
90 |
| - end |
91 |
| - |
92 |
| - it 'supports it if all conditions are met' do |
93 |
| - allow(@vm).to receive(:console_supported?).with('NATIVE').and_return(true) |
94 |
| - |
95 |
| - expect(@vm.supports?(:native_console)).to be_truthy |
96 |
| - end |
97 |
| - end |
98 |
| - |
99 | 56 | describe '#supports?(:launch_vmrc_console)' do
|
100 | 57 | it 'does not support it if validate_remote_console_vmrc_support raises an error' do
|
101 | 58 | allow(@vm).to receive(:validate_remote_console_vmrc_support).and_raise(StandardError)
|
|
0 commit comments