diff options
author | tyler-ball <tyleraball@gmail.com> | 2014-10-30 17:34:37 -0700 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2014-12-17 18:47:24 -0800 |
commit | 4cfb1e47aa8e9501f4f2a01f1d8cc0deb2cfa13b (patch) | |
tree | b0307cd591de26f2b72c6a8d7e45fa2d4af62f6f /lib/chef/audit | |
parent | 7a49ae038a148c137d72cb5a60a3581b4db264ab (diff) | |
download | chef-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.rb | 10 |
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 |