From 3f36217e58b19664fa065f77e78547f124e254ad Mon Sep 17 00:00:00 2001 From: Bruce Williams Date: Thu, 18 Mar 2010 01:12:26 -0700 Subject: Rename methods context_with(out)? => context_with\1_resource for clarity --- spec/support/resource_helpers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/support/resource_helpers.rb') 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 -- cgit v1.2.3