diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2014-12-19 12:25:21 +0100 |
---|---|---|
committer | Travis Fields <travis@puppetlabs.com> | 2015-03-05 10:59:31 -0800 |
commit | 56d815bcfc5f57d8dff974fd8bba192c6b141f89 (patch) | |
tree | d64a5cf7d5223e6bcba82248108ca32dd10ecadf /spec | |
parent | 706b9e8205f1ff205226ef53e7d9b58de5cb6e54 (diff) | |
download | puppet-stdlib-56d815bcfc5f57d8dff974fd8bba192c6b141f89.tar.gz puppet-stdlib-56d815bcfc5f57d8dff974fd8bba192c6b141f89.tar.bz2 |
Rename private() to assert_private()
As mentioned in #270, private is a reserved keyword in the future parser
which is to be released with Puppet 4. As it stands, this function is
not useable with the future parser so it needs to renamed.
This is a breaking change.
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/functions/assert_private_spec.rb (renamed from spec/functions/private_spec.rb) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functions/private_spec.rb b/spec/functions/assert_private_spec.rb index c70759f..a009d28 100755 --- a/spec/functions/private_spec.rb +++ b/spec/functions/assert_private_spec.rb @@ -1,11 +1,11 @@ #! /usr/bin/env ruby -S rspec require 'spec_helper' -describe Puppet::Parser::Functions.function(:private) do +describe Puppet::Parser::Functions.function(:assert_private) do let(:scope) { PuppetlabsSpec::PuppetInternals.scope } subject do - function_name = Puppet::Parser::Functions.function(:private) + function_name = Puppet::Parser::Functions.function(:assert_private) scope.method(function_name) end |