source: other-projects/hathitrust/vagrant-solr-cluster/trunk/modules/stdlib/spec/functions/dig_spec.rb@ 30960

Last change on this file since 30960 was 30960, checked in by davidb, 7 years ago

Switch to using Puppet to provision machine. Strongly based on files developed for spark-hdfs cluster

File size: 421 bytes
Line 
1require 'spec_helper'
2
3describe 'dig' do
4
5 it "should exist" do
6 expect(Puppet::Parser::Functions.function("dig")).to eq("function_dig")
7 end
8
9 it "should give a deprecation warning when called" do
10 scope.expects(:warning).with("dig() DEPRECATED: This function has been replaced in Puppet 4.5.0, please use dig44() for backwards compatibility or use the new version.")
11 scope.function_dig([{}, []])
12 end
13end
Note: See TracBrowser for help on using the repository browser.