Skip to content

Commit

Permalink
(maint) Remove unused variables from spec
Browse files Browse the repository at this point in the history
Marked by static analysis; specs continue to pass after removal.
  • Loading branch information
jpartlow committed May 26, 2016
1 parent 53e9021 commit 6113452
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions spec/beaker-pe/install/pe_utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ def slice_installer_options(host)
end
allow( subject ).to receive( :on ).and_return( true )

path = unixhost['pe_dir']
filename = "#{ unixhost['dist'] }"
extension = '.tar'
expect( subject ).to receive( :fetch_and_push_pe ).with( unixhost, anything, filename, extension ).once
Expand All @@ -483,7 +482,6 @@ def slice_installer_options(host)
allow( subject ).to receive( :link_exists? ).and_return( true ) #is a tar.gz
allow( subject ).to receive( :on ).and_return( true )

path = unixhost['pe_dir']
filename = "#{ unixhost['dist'] }"
extension = '.tar.gz'
expect( subject ).to receive( :fetch_and_push_pe ).with( unixhost, anything, filename, extension ).once
Expand Down Expand Up @@ -918,7 +916,6 @@ def slice_installer_options(host)
the_hosts = [ hosts[0].dup, hosts[1].dup, hosts[2].dup ]
allow( subject ).to receive( :hosts ).and_return( the_hosts )
allow( subject ).to receive( :options ).and_return( {} )
version = version_win = '2.8'
path = "/path/to/upgradepkg"
expect( subject ).to receive( :do_install ).with( the_hosts, {:type=>:upgrade, :set_console_password=>true} )
subject.upgrade_pe( path )
Expand All @@ -933,7 +930,6 @@ def slice_installer_options(host)
the_hosts = [ hosts[0].dup, hosts[1].dup, hosts[2].dup ]
allow( subject ).to receive( :hosts ).and_return( the_hosts )
allow( subject ).to receive( :options ).and_return( {} )
version = version_win = '3.1'
path = "/path/to/upgradepkg"
expect( subject ).to receive( :do_install ).with( the_hosts, {:type=>:upgrade, :set_console_password=>true} )
subject.upgrade_pe( path )
Expand All @@ -948,7 +944,6 @@ def slice_installer_options(host)
the_hosts = [ hosts[0].dup, hosts[1].dup, hosts[2].dup ]
allow( subject ).to receive( :hosts ).and_return( the_hosts )
allow( subject ).to receive( :options ).and_return( {} )
version = version_win = '2.8'
path = "/path/to/upgradepkg"
expect( subject ).to receive( :do_install ).with( the_hosts, {:type=>:upgrade, :set_console_password=>true} )
subject.upgrade_pe( path )
Expand All @@ -962,7 +957,6 @@ def slice_installer_options(host)
allow( Beaker::Options::PEVersionScraper ).to receive( :load_pe_version_win ).and_return( '3.1' )
allow( subject ).to receive( :hosts ).and_return( hosts )
allow( subject ).to receive( :sorted_hosts ).and_return( [hosts[0]] )
version = version_win = '3.1'
path = "/path/to/upgradepkg"
expect( subject ).to receive( :do_install ).with( [hosts[0]], {:type=>:upgrade, :set_console_password=>true} )
subject.upgrade_pe_on(hosts[0], {}, path)
Expand Down

0 comments on commit 6113452

Please sign in to comment.