Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit a625753f authored by Benedikt Wegmann's avatar Benedikt Wegmann
Browse files

spec/classes/docker_spec.rb: Tests für docker_compose_version = undef

parent 952461ba
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,16 @@ describe "ubuntu_server::docker" do
it { is_expected.to contain_file('/usr/local/bin/docker-compose') }
end
context "with class defaults and docker_compose_version = undef" do
let(:facts) {{
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
}}
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_exec('docker-compose') }
it { is_expected.to contain_exec('docker-compose-bash-completion') }
it { is_expected.to contain_file('/usr/local/bin/docker-compose') }
end
context "with class defaults and docker_compose_version => 1.8.1" do
let(:facts) {{
:docker_compose_version => '1.8.1',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment