require 'serverspec'
require 'spec_helper'

set :backend, :exec

describe '7-Iron Drush Modules Test' do
  describe 'Verify Modules Installed:' do
    describe command('su -p vagrant  bash -l -c "drush" vagrant') do
      its(:stdout) { should include '(coder,coder_review,drupalcs,make,registry_rebuild)' }
    end
  end
  describe 'Verify Drush version' do
    describe command('su -p vagrant  bash -l -c "drush --version" vagrant') do
      its(:stdout) { should match /6./ }
    end
  end
end
