spec/support/shared_matcher_examples.rb in serverspec-0.2.5 vs spec/support/shared_matcher_examples.rb in serverspec-0.2.6

- old
+ new

@@ -629,5 +629,18 @@ end it { should_not be_executable.by('others') } end end end + +shared_examples_for 'support have_ipfilter_rule matcher' do |rule| + describe 'have_ipfilter_rule' do + describe 'ipfilter' do + it { should have_ipfilter_rule rule } + end + + describe 'ipfilter' do + it { should_not have_ipfilter_rule 'invalid-rule' } + end + end +end +