puppet-manila/spec/classes/manila_db_sync_spec.rb
Gael Chamoulaud d60db0c73e Spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the new
rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
in order to be prepared for rspec 3.x move.

In details:

* Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
* Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
* Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)

Change-Id: I062afe69fea8acb4785c537df7400d9c5d7034b4
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-15 17:24:02 +01:00

17 lines
348 B
Ruby

require 'spec_helper'
describe 'manila::db::sync' do
let :facts do
{:osfamily => 'Debian'}
end
it { is_expected.to contain_exec('manila-manage db_sync').with(
:command => 'manila-manage db sync',
:path => '/usr/bin',
:user => 'manila',
:refreshonly => true,
:logoutput => 'on_failure'
) }
end