diff options
Diffstat (limited to 'spec/unit/parser/functions/search_spec.rb')
-rwxr-xr-x | spec/unit/parser/functions/search_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/parser/functions/search_spec.rb b/spec/unit/parser/functions/search_spec.rb index b2c042b04..54054bd6a 100755 --- a/spec/unit/parser/functions/search_spec.rb +++ b/spec/unit/parser/functions/search_spec.rb @@ -20,4 +20,9 @@ describe "the 'search' function" do scope.expects(:add_namespace).with("who") scope.function_search(["where", "what", "who"]) end + + it "is deprecated" do + Puppet.expects(:deprecation_warning).with("The 'search' function is deprecated. See http://links.puppetlabs.com/search-function-deprecation") + scope.function_search(['wat']) + end end |