require 'spec_helper'

describe package('docker-compose') do
  it { should be_installed }
end

describe command('dpkg -l docker-compose') do
  its(:stdout) { should match /ii  docker-compose/ }
  its(:stdout) { should match /1.9.0-23/ }
  its(:exit_status) { should eq 0 }
end

describe file('/usr/local/bin/docker-compose') do
  it { should be_file }
  it { should be_mode 755 }
  it { should be_owned_by 'root' }
end

describe command('docker-compose --version') do
  its(:stdout) { should match /1.9.0/m }
  its(:exit_status) { should eq 0 }
end

require 'spec_helper'

# describe package('docker-compose') do
#   it { should be_installed }
# end

# describe command('dpkg -l docker-compose') do
#   its(:stdout) { should match /ii  docker-compose/ }
#   its(:stdout) { should match /1.9.0-23/ }
#   its(:exit_status) { should eq 0 }
# end

describe file('/usr/local/bin/docker-compose') do
  it { should be_file }
  it { should be_mode 755 }
  it { should be_owned_by 'root' }
end

describe command('docker-compose --version') do
  its(:stdout) { should match /1.11.2/m }
  its(:exit_status) { should eq 0 }
end

Fix integrations tests for Docker Compose
Fix integrations tests for Docker Compose

Signed-off-by: Dieter Reuter <554783fc552b5b2a46dd3d7d7b9b2cce9a82c122@me.com>
