summaryrefslogtreecommitdiff
path: root/lib/chef/audit
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2014-10-30 17:34:37 -0700
committertyler-ball <tyleraball@gmail.com>2014-12-17 18:47:24 -0800
commit4cfb1e47aa8e9501f4f2a01f1d8cc0deb2cfa13b (patch)
treeb0307cd591de26f2b72c6a8d7e45fa2d4af62f6f /lib/chef/audit
parent7a49ae038a148c137d72cb5a60a3581b4db264ab (diff)
downloadchef-4cfb1e47aa8e9501f4f2a01f1d8cc0deb2cfa13b.tar.gz
Creating our own example group class to simplify adding examples to the spec runner
Diffstat (limited to 'lib/chef/audit')
-rw-r--r--lib/chef/audit/chef_example_group.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/chef/audit/chef_example_group.rb b/lib/chef/audit/chef_example_group.rb
new file mode 100644
index 0000000000..cd874d57b7
--- /dev/null
+++ b/lib/chef/audit/chef_example_group.rb
@@ -0,0 +1,10 @@
+require 'rspec/core'
+
+class Chef
+ class Audit
+ class ChefExampleGroup < ::RSpec::Core::ExampleGroup
+ # Can encompass tests in a `control` block or `describe` block
+ define_example_group_method :control
+ end
+ end
+end