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 authored and legal90 committed Dec 14, 2016
1 parent 3c033a9 commit ee690dd
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 ee690dd

Please sign in to comment.