summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
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