summaryrefslogtreecommitdiff
path: root/spec/support/resource_helpers.rb
diff options
context:
space:
mode:
authorBruce Williams <bruce@codefluency.com>2010-03-18 01:12:26 -0700
committerBruce Williams <bruce@codefluency.com>2010-03-18 01:12:26 -0700
commit3f36217e58b19664fa065f77e78547f124e254ad (patch)
tree9344936bbb10a158e3e643d81300fa367766055c /spec/support/resource_helpers.rb
parente1470a239f2d82d2032b179a0eb4052c4c1c4550 (diff)
Rename methods context_with(out)? => context_with\1_resource for clarity
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