coverage/index.html in vagrant-windows-1.3.0 vs coverage/index.html in vagrant-windows-1.3.1
- old
+ new
@@ -12,31 +12,31 @@
<body>
<div id="loading">
<img src="./assets/0.7.1/loading.gif" alt="loading"/>
</div>
<div id="wrapper" style="display:none;">
- <div class="timestamp">Generated <abbr class="timeago" title="2013-11-14T12:48:58-08:00">2013-11-14T12:48:58-08:00</abbr></div>
+ <div class="timestamp">Generated <abbr class="timeago" title="2013-12-02T14:07:38-08:00">2013-12-02T14:07:38-08:00</abbr></div>
<ul class="group_tabs"></ul>
<div id="content">
<div class="file_list_container" id="AllFiles">
<h2>
<span class="group_name">All Files</span>
- (<span class="covered_percent"><span class="red">57.41%</span></span>
+ (<span class="covered_percent"><span class="red">57.79%</span></span>
covered at
<span class="covered_strength">
<span class="green">
- 1.07
+ 1.08
</span>
</span> hits/line)
</h2>
<a name="AllFiles"></a>
<div>
<b>29</b> files in total.
- <b>796</b> relevant lines.
- <span class="green"><b>457</b> lines covered</span> and
- <span class="red"><b>339</b> lines missed </span>
+ <b>822</b> relevant lines.
+ <span class="green"><b>475</b> lines covered</span> and
+ <span class="red"><b>347</b> lines missed </span>
</div>
<table class="file_list">
<thead>
<tr>
<th>File</th>
@@ -230,15 +230,15 @@
<td>0</td>
</tr>
<tr>
<td class="strong"><a href="#8dd805604e0326933cecd09151f4d1dac947b74c" class="src_link" title="lib/vagrant-windows/monkey_patches/plugins/provisioners/shell/provisioner.rb">lib/vagrant-windows/monkey_patches/plugins/provisioners/shell/provisioner.rb</a></td>
- <td class="red strong">31.58 %</td>
- <td>89</td>
- <td>38</td>
+ <td class="red strong">26.09 %</td>
+ <td>103</td>
+ <td>46</td>
<td>12</td>
- <td>26</td>
+ <td>34</td>
<td>0.3</td>
</tr>
<tr>
<td class="strong"><a href="#ee8701360a03270a2ab0f3354046766cf5f92da8" class="src_link" title="lib/vagrant-windows/plugin.rb">lib/vagrant-windows/plugin.rb</a></td>
@@ -250,16 +250,16 @@
<td>0.6</td>
</tr>
<tr>
<td class="strong"><a href="#2942f83d8bbaec9486dce51dfc24c9b92f3ea2ee" class="src_link" title="lib/vagrant-windows/windows_machine.rb">lib/vagrant-windows/windows_machine.rb</a></td>
- <td class="red strong">68.0 %</td>
- <td>76</td>
- <td>25</td>
- <td>17</td>
+ <td class="red strong">72.41 %</td>
+ <td>87</td>
+ <td>29</td>
+ <td>21</td>
<td>8</td>
- <td>1.0</td>
+ <td>1.2</td>
</tr>
<tr>
<td class="strong"><a href="#13b6aec4445d4eeafa03e964d1e1486037abd7a4" class="src_link" title="spec/vagrant-windows/helper_spec.rb">spec/vagrant-windows/helper_spec.rb</a></td>
<td class="green strong">100.0 %</td>
@@ -291,13 +291,13 @@
</tr>
<tr>
<td class="strong"><a href="#43f77545cf4f67647d0945fb930bc745e38cb962" class="src_link" title="spec/vagrant-windows/windows_machine_spec.rb">spec/vagrant-windows/windows_machine_spec.rb</a></td>
<td class="green strong">100.0 %</td>
- <td>44</td>
- <td>28</td>
- <td>28</td>
+ <td>65</td>
+ <td>42</td>
+ <td>42</td>
<td>0</td>
<td>1.0</td>
</tr>
<tr>
@@ -6957,15 +6957,15 @@
</div>
<div class="source_table" id="8dd805604e0326933cecd09151f4d1dac947b74c">
<div class="header">
<h3>lib/vagrant-windows/monkey_patches/plugins/provisioners/shell/provisioner.rb</h3>
- <h4><span class="red">31.58 %</span> covered</h4>
+ <h4><span class="red">26.09 %</span> covered</h4>
<div>
- <b>38</b> relevant lines.
+ <b>46</b> relevant lines.
<span class="green"><b>12</b> lines covered</span> and
- <span class="red"><b>26</b> lines missed.</span>
+ <span class="red"><b>34</b> lines missed.</span>
</div>
</div>
<pre>
<ol>
@@ -7115,11 +7115,11 @@
</li>
<li class="missed" data-hits="0" data-linenumber="25">
- <code class="ruby"> with_script_file do |path|</code>
+ <code class="ruby"> with_windows_script_file do |path|</code>
</li>
<li class="never" data-hits="" data-linenumber="26">
@@ -7361,113 +7361,113 @@
</li>
<li class="covered" data-hits="1" data-linenumber="66">
<span class="hits">1</span>
- <code class="ruby"> def with_script_file</code>
+ <code class="ruby"> def with_windows_script_file</code>
</li>
<li class="missed" data-hits="0" data-linenumber="67">
- <code class="ruby"> if config.path</code>
+ <code class="ruby"> script = nil</code>
</li>
<li class="never" data-hits="" data-linenumber="68">
- <code class="ruby"> # Just yield the path to that file...</code>
+ <code class="ruby"></code>
</li>
<li class="missed" data-hits="0" data-linenumber="69">
- <code class="ruby"> yield config.path</code>
+ <code class="ruby"> if config.remote?</code>
</li>
- <li class="never" data-hits="" data-linenumber="70">
+ <li class="missed" data-hits="0" data-linenumber="70">
- <code class="ruby"> else</code>
+ <code class="ruby"> download_path = @machine.env.tmp_path.join("#{@machine.id}-remote-script")</code>
</li>
- <li class="never" data-hits="" data-linenumber="71">
+ <li class="missed" data-hits="0" data-linenumber="71">
- <code class="ruby"> # Otherwise we have an inline script, we need to Tempfile it,</code>
+ <code class="ruby"> download_path.delete if download_path.file?</code>
</li>
<li class="never" data-hits="" data-linenumber="72">
- <code class="ruby"> # and handle it specially...</code>
+ <code class="ruby"></code>
</li>
<li class="missed" data-hits="0" data-linenumber="73">
- <code class="ruby"> file = Tempfile.new(['vagrant-powershell', '.ps1'])</code>
+ <code class="ruby"> Vagrant::Util::Downloader.new(config.path, download_path).download!</code>
</li>
- <li class="never" data-hits="" data-linenumber="74">
+ <li class="missed" data-hits="0" data-linenumber="74">
- <code class="ruby"></code>
+ <code class="ruby"> script = download_path.read</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="75">
+ <li class="never" data-hits="" data-linenumber="75">
- <code class="ruby"> begin</code>
+ <code class="ruby"></code>
</li>
<li class="missed" data-hits="0" data-linenumber="76">
- <code class="ruby"> file.write(config.inline)</code>
+ <code class="ruby"> download_path.delete</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="77">
+ <li class="never" data-hits="" data-linenumber="77">
- <code class="ruby"> file.fsync</code>
+ <code class="ruby"> elsif config.path</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="78">
+ <li class="never" data-hits="" data-linenumber="78">
- <code class="ruby"> file.close</code>
+ <code class="ruby"> # Just yield the path to that file...</code>
</li>
<li class="missed" data-hits="0" data-linenumber="79">
- <code class="ruby"> yield file.path</code>
+ <code class="ruby"> root_path = @machine.env.root_path</code>
</li>
- <li class="never" data-hits="" data-linenumber="80">
+ <li class="missed" data-hits="0" data-linenumber="80">
- <code class="ruby"> ensure</code>
+ <code class="ruby"> script = Pathname.new(config.path).expand_path(root_path).read</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="81">
+ <li class="never" data-hits="" data-linenumber="81">
- <code class="ruby"> file.close</code>
+ <code class="ruby"> else</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="82">
+ <li class="never" data-hits="" data-linenumber="82">
- <code class="ruby"> file.unlink</code>
+ <code class="ruby"> # The script is just the inline code...</code>
</li>
- <li class="never" data-hits="" data-linenumber="83">
+ <li class="missed" data-hits="0" data-linenumber="83">
- <code class="ruby"> end</code>
+ <code class="ruby"> script = config.inline</code>
</li>
<li class="never" data-hits="" data-linenumber="84">
@@ -7475,32 +7475,116 @@
</li>
<li class="never" data-hits="" data-linenumber="85">
- <code class="ruby"> end</code>
+ <code class="ruby"></code>
</li>
<li class="never" data-hits="" data-linenumber="86">
- <code class="ruby"></code>
+ <code class="ruby"> # Otherwise we have an inline script, we need to Tempfile it,</code>
</li>
<li class="never" data-hits="" data-linenumber="87">
+ <code class="ruby"> # and handle it specially...</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="88">
+
+
+ <code class="ruby"> file = Tempfile.new(['vagrant-powershell', '.ps1'])</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="89">
+
+
+ <code class="ruby"></code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="90">
+
+
+ <code class="ruby"> begin</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="91">
+
+
+ <code class="ruby"> file.write(script)</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="92">
+
+
+ <code class="ruby"> file.fsync</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="93">
+
+
+ <code class="ruby"> file.close</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="94">
+
+
+ <code class="ruby"> yield file.path</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="95">
+
+
+ <code class="ruby"> ensure</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="96">
+
+
+ <code class="ruby"> file.close</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="97">
+
+
+ <code class="ruby"> file.unlink</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="98">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="99">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="100">
+
+
+ <code class="ruby"></code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="101">
+
+
<code class="ruby"> end # Provisioner class</code>
</li>
- <li class="never" data-hits="" data-linenumber="88">
+ <li class="never" data-hits="" data-linenumber="102">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="89">
+ <li class="never" data-hits="" data-linenumber="103">
<code class="ruby">end</code>
</li>
@@ -8301,14 +8385,14 @@
</div>
<div class="source_table" id="2942f83d8bbaec9486dce51dfc24c9b92f3ea2ee">
<div class="header">
<h3>lib/vagrant-windows/windows_machine.rb</h3>
- <h4><span class="red">68.0 %</span> covered</h4>
+ <h4><span class="red">72.41 %</span> covered</h4>
<div>
- <b>25</b> relevant lines.
- <span class="green"><b>17</b> lines covered</span> and
+ <b>29</b> relevant lines.
+ <span class="green"><b>21</b> lines covered</span> and
<span class="red"><b>8</b> lines missed.</span>
</div>
</div>
<pre>
@@ -8414,18 +8498,18 @@
<span class="hits">1</span>
<code class="ruby"> def initialize(machine)</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="18">
- <span class="hits">3</span>
+ <li class="covered" data-hits="6" data-linenumber="18">
+ <span class="hits">6</span>
<code class="ruby"> @machine = machine</code>
</li>
- <li class="covered" data-hits="3" data-linenumber="19">
- <span class="hits">3</span>
+ <li class="covered" data-hits="6" data-linenumber="19">
+ <span class="hits">6</span>
<code class="ruby"> @logger = Log4r::Logger.new("vagrant_windows::windows_machine")</code>
</li>
<li class="never" data-hits="" data-linenumber="20">
@@ -8483,11 +8567,11 @@
</li>
<li class="never" data-hits="" data-linenumber="29">
- <code class="ruby"> # Checks to see if the machine is rebooting or has a scheduled reboot.</code>
+ <code class="ruby"> # Checks to see if the machine is using Oracle VirtualBox.</code>
</li>
<li class="never" data-hits="" data-linenumber="30">
@@ -8495,278 +8579,344 @@
</li>
<li class="never" data-hits="" data-linenumber="31">
- <code class="ruby"> # @return [Boolean] True if rebooting</code>
+ <code class="ruby"> # @return [Boolean]</code>
</li>
<li class="covered" data-hits="1" data-linenumber="32">
<span class="hits">1</span>
+ <code class="ruby"> def is_virtualbox?()</code>
+ </li>
+
+ <li class="covered" data-hits="3" data-linenumber="33">
+ <span class="hits">3</span>
+
+ <code class="ruby"> @machine.provider_name.to_s().start_with?('virtualbox')</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="34">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="35">
+
+
+ <code class="ruby"> </code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="36">
+
+
+ <code class="ruby"> # Checks to see if the machine is rebooting or has a scheduled reboot.</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="37">
+
+
+ <code class="ruby"> #</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="38">
+
+
+ <code class="ruby"> # @return [Boolean] True if rebooting</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="39">
+ <span class="hits">1</span>
+
<code class="ruby"> def is_rebooting?()</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="33">
+ <li class="missed" data-hits="0" data-linenumber="40">
<code class="ruby"> reboot_detect_script = VagrantWindows.load_script('reboot_detect.ps1')</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="34">
+ <li class="missed" data-hits="0" data-linenumber="41">
<code class="ruby"> @machine.communicate.execute(reboot_detect_script, :error_check => false) != 0</code>
</li>
- <li class="never" data-hits="" data-linenumber="35">
+ <li class="never" data-hits="" data-linenumber="42">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="36">
+ <li class="never" data-hits="" data-linenumber="43">
<code class="ruby"> </code>
</li>
- <li class="never" data-hits="" data-linenumber="37">
+ <li class="never" data-hits="" data-linenumber="44">
<code class="ruby"> # Returns the active WinRMShell for the guest.</code>
</li>
- <li class="never" data-hits="" data-linenumber="38">
+ <li class="never" data-hits="" data-linenumber="45">
<code class="ruby"> #</code>
</li>
- <li class="never" data-hits="" data-linenumber="39">
+ <li class="never" data-hits="" data-linenumber="46">
<code class="ruby"> # @return [WinRMShell]</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="40">
+ <li class="covered" data-hits="1" data-linenumber="47">
<span class="hits">1</span>
<code class="ruby"> def winrmshell()</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="41">
+ <li class="missed" data-hits="0" data-linenumber="48">
<code class="ruby"> @machine.communicate.winrmshell</code>
</li>
- <li class="never" data-hits="" data-linenumber="42">
+ <li class="never" data-hits="" data-linenumber="49">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="43">
+ <li class="never" data-hits="" data-linenumber="50">
<code class="ruby"></code>
</li>
- <li class="never" data-hits="" data-linenumber="44">
+ <li class="never" data-hits="" data-linenumber="51">
<code class="ruby"> # Reads the machine's MAC addresses keyed by interface index.</code>
</li>
- <li class="never" data-hits="" data-linenumber="45">
+ <li class="never" data-hits="" data-linenumber="52">
<code class="ruby"> # {1=>"0800273FAC5A", 2=>"08002757E68A"}</code>
</li>
- <li class="never" data-hits="" data-linenumber="46">
+ <li class="never" data-hits="" data-linenumber="53">
<code class="ruby"> #</code>
</li>
- <li class="never" data-hits="" data-linenumber="47">
+ <li class="never" data-hits="" data-linenumber="54">
<code class="ruby"> # @return [Hash]</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="48">
+ <li class="covered" data-hits="1" data-linenumber="55">
<span class="hits">1</span>
<code class="ruby"> def read_mac_addresses()</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="49">
+ <li class="missed" data-hits="0" data-linenumber="56">
<code class="ruby"> @machine.provider.driver.read_mac_addresses</code>
</li>
- <li class="never" data-hits="" data-linenumber="50">
+ <li class="never" data-hits="" data-linenumber="57">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="51">
+ <li class="never" data-hits="" data-linenumber="58">
<code class="ruby"> </code>
</li>
- <li class="never" data-hits="" data-linenumber="52">
+ <li class="never" data-hits="" data-linenumber="59">
<code class="ruby"> # Returns a list of forwarded ports for a VM.</code>
</li>
- <li class="never" data-hits="" data-linenumber="53">
+ <li class="never" data-hits="" data-linenumber="60">
- <code class="ruby"> # NOTE: For VMWare this is currently unsupported.</code>
+ <code class="ruby"> # NOTE: Only the VBox provider currently supports this method</code>
</li>
- <li class="never" data-hits="" data-linenumber="54">
+ <li class="never" data-hits="" data-linenumber="61">
<code class="ruby"> #</code>
</li>
- <li class="never" data-hits="" data-linenumber="55">
+ <li class="never" data-hits="" data-linenumber="62">
<code class="ruby"> # @return [Array<Array>]</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="56">
+ <li class="covered" data-hits="1" data-linenumber="63">
<span class="hits">1</span>
<code class="ruby"> def read_forwarded_ports()</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="57">
+ <li class="covered" data-hits="1" data-linenumber="64">
+ <span class="hits">1</span>
+ <code class="ruby"> if is_virtualbox?()</code>
+ </li>
+
+ <li class="missed" data-hits="0" data-linenumber="65">
- <code class="ruby"> is_vmware?() ? [] : @machine.provider.driver.read_forwarded_ports</code>
+
+ <code class="ruby"> @machine.provider.driver.read_forwarded_ports</code>
</li>
- <li class="never" data-hits="" data-linenumber="58">
+ <li class="never" data-hits="" data-linenumber="66">
+ <code class="ruby"> else</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="67">
+ <span class="hits">1</span>
+
+ <code class="ruby"> []</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="68">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="69">
+
+
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="59">
+ <li class="never" data-hits="" data-linenumber="70">
<code class="ruby"> </code>
</li>
- <li class="never" data-hits="" data-linenumber="60">
+ <li class="never" data-hits="" data-linenumber="71">
<code class="ruby"> # Returns the SSH config for this machine.</code>
</li>
- <li class="never" data-hits="" data-linenumber="61">
+ <li class="never" data-hits="" data-linenumber="72">
<code class="ruby"> #</code>
</li>
- <li class="never" data-hits="" data-linenumber="62">
+ <li class="never" data-hits="" data-linenumber="73">
<code class="ruby"> # @return [Hash]</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="63">
+ <li class="covered" data-hits="1" data-linenumber="74">
<span class="hits">1</span>
<code class="ruby"> def ssh_info()</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="64">
+ <li class="missed" data-hits="0" data-linenumber="75">
<code class="ruby"> @machine.ssh_info</code>
</li>
- <li class="never" data-hits="" data-linenumber="65">
+ <li class="never" data-hits="" data-linenumber="76">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="66">
+ <li class="never" data-hits="" data-linenumber="77">
<code class="ruby"> </code>
</li>
- <li class="covered" data-hits="1" data-linenumber="67">
+ <li class="covered" data-hits="1" data-linenumber="78">
<span class="hits">1</span>
<code class="ruby"> def windows_config()</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="68">
+ <li class="missed" data-hits="0" data-linenumber="79">
<code class="ruby"> @machine.config.windows</code>
</li>
- <li class="never" data-hits="" data-linenumber="69">
+ <li class="never" data-hits="" data-linenumber="80">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="70">
+ <li class="never" data-hits="" data-linenumber="81">
<code class="ruby"> </code>
</li>
- <li class="covered" data-hits="1" data-linenumber="71">
+ <li class="covered" data-hits="1" data-linenumber="82">
<span class="hits">1</span>
<code class="ruby"> def winrm_config()</code>
</li>
- <li class="missed" data-hits="0" data-linenumber="72">
+ <li class="missed" data-hits="0" data-linenumber="83">
<code class="ruby"> @machine.config.winrm</code>
</li>
- <li class="never" data-hits="" data-linenumber="73">
+ <li class="never" data-hits="" data-linenumber="84">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="74">
+ <li class="never" data-hits="" data-linenumber="85">
<code class="ruby"> </code>
</li>
- <li class="never" data-hits="" data-linenumber="75">
+ <li class="never" data-hits="" data-linenumber="86">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="76">
+ <li class="never" data-hits="" data-linenumber="87">
<code class="ruby">end</code>
</li>
@@ -9425,12 +9575,12 @@
<div class="source_table" id="43f77545cf4f67647d0945fb930bc745e38cb962">
<div class="header">
<h3>spec/vagrant-windows/windows_machine_spec.rb</h3>
<h4><span class="green">100.0 %</span> covered</h4>
<div>
- <b>28</b> relevant lines.
- <span class="green"><b>28</b> lines covered</span> and
+ <b>42</b> relevant lines.
+ <span class="green"><b>42</b> lines covered</span> and
<span class="red"><b>0</b> lines missed.</span>
</div>
</div>
<pre>
@@ -9593,109 +9743,235 @@
</li>
<li class="covered" data-hits="1" data-linenumber="27">
<span class="hits">1</span>
- <code class="ruby"> describe "is_windows?" do</code>
+ <code class="ruby"> describe "is_virtualbox?" do</code>
</li>
<li class="covered" data-hits="1" data-linenumber="28">
<span class="hits">1</span>
- <code class="ruby"> it "should return true when config vm guest is windows" do</code>
+ <code class="ruby"> it "should be true for virtualbox" do</code>
</li>
<li class="covered" data-hits="1" data-linenumber="29">
<span class="hits">1</span>
- <code class="ruby"> vm = stub(:guest => :windows)</code>
+ <code class="ruby"> machine = stub(:provider_name => :virtualbox)</code>
</li>
<li class="covered" data-hits="1" data-linenumber="30">
<span class="hits">1</span>
- <code class="ruby"> config = stub(:vm => vm)</code>
+ <code class="ruby"> windows_machine = VagrantWindows::WindowsMachine.new(machine)</code>
</li>
<li class="covered" data-hits="1" data-linenumber="31">
<span class="hits">1</span>
+ <code class="ruby"> expect(windows_machine.is_virtualbox?()).to be_true</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="32">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="33">
+
+
+ <code class="ruby"> </code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="34">
+ <span class="hits">1</span>
+
+ <code class="ruby"> it "should be false for vmware_workstation" do</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="35">
+ <span class="hits">1</span>
+
+ <code class="ruby"> machine = stub(:provider_name => :vmware_workstation)</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="36">
+ <span class="hits">1</span>
+
+ <code class="ruby"> windows_machine = VagrantWindows::WindowsMachine.new(machine)</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="37">
+ <span class="hits">1</span>
+
+ <code class="ruby"> expect(windows_machine.is_virtualbox?()).to be_false</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="38">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="39">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="40">
+
+
+ <code class="ruby"> </code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="41">
+ <span class="hits">1</span>
+
+ <code class="ruby"> describe "is_windows?" do</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="42">
+ <span class="hits">1</span>
+
+ <code class="ruby"> it "should return true when config vm guest is windows" do</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="43">
+ <span class="hits">1</span>
+
+ <code class="ruby"> vm = stub(:guest => :windows)</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="44">
+ <span class="hits">1</span>
+
+ <code class="ruby"> config = stub(:vm => vm)</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="45">
+ <span class="hits">1</span>
+
<code class="ruby"> machine = stub(:config => config)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="32">
+ <li class="covered" data-hits="1" data-linenumber="46">
<span class="hits">1</span>
<code class="ruby"> expect(VagrantWindows::WindowsMachine.is_windows?(machine)).to be_true</code>
</li>
- <li class="never" data-hits="" data-linenumber="33">
+ <li class="never" data-hits="" data-linenumber="47">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="34">
+ <li class="never" data-hits="" data-linenumber="48">
<code class="ruby"> </code>
</li>
- <li class="covered" data-hits="1" data-linenumber="35">
+ <li class="covered" data-hits="1" data-linenumber="49">
<span class="hits">1</span>
<code class="ruby"> it "should return false when config vm guest is not windows" do</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="36">
+ <li class="covered" data-hits="1" data-linenumber="50">
<span class="hits">1</span>
<code class="ruby"> vm = stub(:guest => :ubuntu)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="37">
+ <li class="covered" data-hits="1" data-linenumber="51">
<span class="hits">1</span>
<code class="ruby"> config = stub(:vm => vm)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="38">
+ <li class="covered" data-hits="1" data-linenumber="52">
<span class="hits">1</span>
<code class="ruby"> machine = stub(:config => config)</code>
</li>
- <li class="covered" data-hits="1" data-linenumber="39">
+ <li class="covered" data-hits="1" data-linenumber="53">
<span class="hits">1</span>
<code class="ruby"> expect(VagrantWindows::WindowsMachine.is_windows?(machine)).to be_false</code>
</li>
- <li class="never" data-hits="" data-linenumber="40">
+ <li class="never" data-hits="" data-linenumber="54">
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="41">
+ <li class="never" data-hits="" data-linenumber="55">
- <code class="ruby"></code>
+ <code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="42">
+ <li class="never" data-hits="" data-linenumber="56">
+ <code class="ruby"> </code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="57">
+ <span class="hits">1</span>
+
+ <code class="ruby"> describe "read_forwarded_ports" do</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="58">
+ <span class="hits">1</span>
+
+ <code class="ruby"> it "should return empty array for vmware provider" do</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="59">
+ <span class="hits">1</span>
+
+ <code class="ruby"> machine = stub(:provider_name => :vmware_fusion)</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="60">
+ <span class="hits">1</span>
+
+ <code class="ruby"> windows_machine = VagrantWindows::WindowsMachine.new(machine)</code>
+ </li>
+
+ <li class="covered" data-hits="1" data-linenumber="61">
+ <span class="hits">1</span>
+
+ <code class="ruby"> expect(windows_machine.read_forwarded_ports()).to eq([])</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="62">
+
+
+ <code class="ruby"> end</code>
+ </li>
+
+ <li class="never" data-hits="" data-linenumber="63">
+
+
<code class="ruby"> end</code>
</li>
- <li class="never" data-hits="" data-linenumber="43">
+ <li class="never" data-hits="" data-linenumber="64">
<code class="ruby"></code>
</li>
- <li class="never" data-hits="" data-linenumber="44">
+ <li class="never" data-hits="" data-linenumber="65">
<code class="ruby">end</code>
</li>