puppet-manila/spec/shared_examples.rb
Gael Chamoulaud 1129efb19f Fix rspec 3.x syntax
- Convert 'should' keyword to 'is_expected.to'

Change-Id: I484efa4ba428c15ec7810fbe4e780276b2ebff5d
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-07-21 12:58:18 +02:00

6 lines
213 B
Ruby

shared_examples_for "a Puppet::Error" do |description|
it "with message matching #{description.inspect}" do
expect { is_expected.to have_class_count(1) }.to raise_error(Puppet::Error, description)
end
end