diff options
author | Gary Larizza <gary@puppetlabs.com> | 2012-10-18 18:12:09 -0700 |
---|---|---|
committer | Gary Larizza <gary@puppetlabs.com> | 2012-10-18 18:12:09 -0700 |
commit | 755b593dbd3588ec95d952228477f6df9d7ae328 (patch) | |
tree | b56b2a52caf9259bc19454bd806bb5d0c467b979 /spec/support | |
parent | 7a08d7f5356aad3c4af3467d076071ab8e087f55 (diff) | |
parent | d4f68c2b28e08158b53e3f7606c94de7481bc74a (diff) | |
download | puppet-vcsrepo-755b593dbd3588ec95d952228477f6df9d7ae328.tar.gz puppet-vcsrepo-755b593dbd3588ec95d952228477f6df9d7ae328.tar.bz2 |
Merge pull request #30 from ghoneycutt/noticket/master/inappropriate_whitespace
Removes trailing whitespace
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/filesystem_helpers.rb | 2 | ||||
-rw-r--r-- | spec/support/fixture_helpers.rb | 1 | ||||
-rw-r--r-- | spec/support/provider_example_group.rb | 6 |
3 files changed, 4 insertions, 5 deletions
diff --git a/spec/support/filesystem_helpers.rb b/spec/support/filesystem_helpers.rb index 08345b4..15e2ca7 100644 --- a/spec/support/filesystem_helpers.rb +++ b/spec/support/filesystem_helpers.rb @@ -3,7 +3,7 @@ module FilesystemHelpers def expects_chdir(path = resource.value(:path)) Dir.expects(:chdir).with(path).at_least_once.yields end - + def expects_mkdir(path = resource.value(:path)) Dir.expects(:mkdir).with(path).at_least_once end diff --git a/spec/support/fixture_helpers.rb b/spec/support/fixture_helpers.rb index 7b7b20a..205715c 100644 --- a/spec/support/fixture_helpers.rb +++ b/spec/support/fixture_helpers.rb @@ -3,5 +3,4 @@ module FixtureHelpers def fixture(name, ext = '.txt') File.read(File.join(File.dirname(__FILE__), '..', 'fixtures', name.to_s + ext)) end - end 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. |