Skip to content

Commit

Permalink
Remove unneeded specs for archive_file
Browse files Browse the repository at this point in the history
Using the `archive_file` resource means less resources are needed and
have been removed. Also removing corresponding spec tests here.
  • Loading branch information
webframp committed Oct 25, 2020
1 parent c3e8fef commit e8ed981
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions spec/unit/recipes/sensu_ctl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,24 +76,8 @@
expect { chef_run }.to_not raise_error
end

it 'creates a directory `c:\sensutemp`' do
expect(chef_run).to create_directory('c:\sensutemp')
end

it 'extracts an archive' do
expect(chef_run).to extract_archive_file('Extract Sensuctl Gz')
end

it 'extracts the archive' do
expect(chef_run).to extract_archive_file('Extract Sensuctl Tar')
end

it 'creates a directory `c:\Program Files\Sensu\sensu-cli\bin\sensuctl`' do
expect(chef_run).to create_directory('c:\Program Files\Sensu\sensu-cli\bin\sensuctl')
end

it 'creates a remote_file `c:\Program Files\Sensu\sensu-cli\bin\sensuctl\sensuctl.exe`' do
expect(chef_run).to create_remote_file('c:\Program Files\Sensu\sensu-cli\bin\sensuctl\sensuctl.exe')
expect(chef_run).to extract_archive_file('Extract Sensuctl')
end

it 'adds `c:\Program Files\Sensu\sensu-cli\bin\sensuctl` to windows path' do
Expand Down

0 comments on commit e8ed981

Please sign in to comment.