cookbook-openstack-block-st.../spec/cinder_common-redhat_spec.rb
Matt Ray 60e37c5eb0 Unified Rubocop cleanups under single file.
Consolidate all the .rubocop.yml into a single file, finished out cleanups for
all the Ruby files.

Change-Id: I92d5983724d5d0185cd25bea6a0f46657a6c05d4
Addresses: blueprint rubocop-for-block-storage
2014-01-17 15:35:20 -06:00

23 lines
589 B
Ruby

# encoding: UTF-8
#
# Cookbook Name:: openstack-block-storage
require_relative 'spec_helper'
describe 'openstack-block-storage::cinder-common' do
before { block_storage_stubs }
before do
@chef_run = ::ChefSpec::Runner.new ::REDHAT_OPTS do |n|
n.set['openstack']['mq'] = {
'host' => '127.0.0.1'
}
n.set['openstack']['block-storage']['syslog']['use'] = true
end
@chef_run.converge 'openstack-block-storage::cinder-common'
end
it 'installs the openstack-cinder package' do
expect(@chef_run).to upgrade_package 'openstack-cinder'
end
end