spec/support/shared_matcher_examples.rb in serverspec-0.0.16 vs spec/support/shared_matcher_examples.rb in serverspec-0.0.17
- old
+ new
@@ -200,5 +200,17 @@
describe name do
it { should_not be_installed_by_gem.with_version('dummyversion') }
end
end
end
+
+shared_examples_for 'support belong_to_group matcher' do |name, group|
+ describe 'belong_to_group' do
+ describe user do
+ it { should belong_to_group group }
+ end
+
+ describe 'dummyuser' do
+ it { should_not belong_to_group 'dummygroup' }
+ end
+ end
+end