summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-18 01:52:34 -0700
committerBruce Williams <bruce@codefluency.com>2010-03-18 01:52:34 -0700
commit94800be9501c9831c6b9317f52468d24c76d57b9 (patch)
tree158a22297e692a16ba72af4681ffa6437fca5e85 /spec/support
parente7d7e2217d54d8c87dd9897f4fe1bfbdb5038d02 (diff)
Move support file
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/provider_example_group.rb (renamed from spec/support/resource_helpers.rb)4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/resource_helpers.rb b/spec/support/provider_example_group.rb
index a4bc74e..626372d 100644
--- a/spec/support/resource_helpers.rb
+++ b/spec/support/provider_example_group.rb
@@ -23,7 +23,7 @@ class ProviderExampleGroup < Spec::Example::ExampleGroup
#
# given(:ensure)
# given(:ensure => :present)
- def context_with_resource(*args, &block)
+ def resource_with(*args, &block)
options = args.last.is_a?(Hash) ? args.pop : {}
if args.empty?
text = options.map { |k, v| "#{k} => #{v.inspect}" }.join(' and with ')
@@ -35,7 +35,7 @@ class ProviderExampleGroup < Spec::Example::ExampleGroup
end
end
- def context_without_resource(field, &block)
+ def resource_without(field, &block)
context("and without a #{field}", &block)
end