```ruby
require 'spec_helper'

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

describe command('dpkg -l docker-machine') do
  its(:stdout) { should match /ii  docker-machine/ }
  its(:stdout) { should match /0.7.0-18/ }
  its(:exit_status) { should eq 0 }
end

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

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

describe command('docker-machine create --help') do
  its(:stdout) { should match /Available drivers:.*hypriot/ }
  its(:stdout) { should match /--hypriot-ip-address/ }
  its(:stdout) { should match /--hypriot-ssh-key/ }
  its(:stdout) { should match /--hypriot-ssh-port/ }
  its(:stdout) { should match /--hypriot-ssh-user/ }
#  its(:stderr) { should match /^$/ }
  its(:exit_status) { should eq 0 }
end
```

Remove tests regarding old hypriot driver, we'r using upstream bin
user
```ruby
require 'spec_helper'

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

describe command('dpkg -l docker-machine') do
  its(:stdout) { should match /ii  docker-machine/ }
  its(:stdout) { should match /0.7.0-18/ }
  its(:exit_status) { should eq 0 }
end

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

describe command('docker-machine --version') do
  its(:stdout) { should match /0.7.0/m }
  its(:exit_status) { should eq 0 }
end
```
assistant