Skip to content

Commit

Permalink
Move spec tests to use poise-archive matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanner Bruce committed Nov 19, 2016
1 parent 09a4210 commit c28a53e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/spec/libraries/consul_installation_webui_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,23 @@
end

it do
pending('replace with poise-archive')
is_expected.to create_directory('/opt/consul-webui/0.7.1')
.with(
recursive: true
)
end

it do
pending('replace with poise-archive')
is_expected.to create_directory('/var/lib/consul')
.with(
recursive: true
)
end

it do
pending('replace with poise-archive')
is_expected.to unzip_zipfile('consul_0.7.1_web_ui.zip')
.with(
source: 'https://releases.hashicorp.com/consul/0.7.1/consul_0.7.1_web_ui.zip'
is_expected.to unpack_poise_archive('https://releases.hashicorp.com/consul/0.7.1/consul_0.7.1_web_ui.zip').with(
destination: '/opt/consul-webui/0.7.1',
merged_source_properties: {'checksum' => '1b793c60e1af24cc470421d0411e13748f451b51d8a6ed5fcabc8d00bfb84264' }
)
end
end
Expand Down

0 comments on commit c28a53e

Please sign in to comment.