summaryrefslogtreecommitdiff
path: root/spec/support/resource_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/resource_helpers.rb')
-rw-r--r--spec/support/resource_helpers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/resource_helpers.rb b/spec/support/resource_helpers.rb
index a4098b3..a4bc74e 100644
--- a/spec/support/resource_helpers.rb
+++ b/spec/support/resource_helpers.rb
@@ -23,7 +23,7 @@ class ProviderExampleGroup < Spec::Example::ExampleGroup
#
# given(:ensure)
# given(:ensure => :present)
- def context_with(*args, &block)
+ def context_with_resource(*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(field, &block)
+ def context_without_resource(field, &block)
context("and without a #{field}", &block)
end