summaryrefslogtreecommitdiff
path: root/spec/support/provider_example_group.rb
diff options
context:
space:
mode:
authorGarrett Honeycutt <garrett@puppetlabs.com>2012-08-29 00:20:34 +0200
committerGarrett Honeycutt <garrett@puppetlabs.com>2012-08-29 00:20:34 +0200
commitd4f68c2b28e08158b53e3f7606c94de7481bc74a (patch)
treee9ce8e971d06edccedecf89f40295394be8f166d /spec/support/provider_example_group.rb
parentf3acccdfb8af8d98c8fc9c8e287ab22d27d62dac (diff)
Removes trailing whitespace
Diffstat (limited to 'spec/support/provider_example_group.rb')
-rw-r--r--spec/support/provider_example_group.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/provider_example_group.rb b/spec/support/provider_example_group.rb
index 2a8865f..1431f78 100644
--- a/spec/support/provider_example_group.rb
+++ b/spec/support/provider_example_group.rb
@@ -14,7 +14,7 @@ class ProviderExampleGroup < Spec::Example::ExampleGroup
# Build the provider
subject { described_class.new(@resource) }
-
+
# Allow access to it via +provider+
alias :provider :subject
@@ -47,14 +47,14 @@ class ProviderExampleGroup < Spec::Example::ExampleGroup
context("and with a #{text}", {:resource => placeholders}, &block)
end
end
-
+
def self.build_value_context(params = {}, &block) #:nodoc:
unless params.empty?
text = params.map { |k, v| "#{k} => #{v.inspect}" }.join(' and with ')
context("and with #{text}", {:resource => params}, &block)
end
end
-
+
# Generate a context for a provider operating on a resource without
# a given parameter/property.