newer pg module
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / spec / unit / functions / postgresql_escape_spec.rb
1 require 'spec_helper'
2
3 describe 'postgresql_escape', :type => :puppet_function do
4   it { is_expected.to run.with_params('foo').
5     and_return('$$foo$$') }
6 end
7 describe 'postgresql_escape', :type => :puppet_function do
8   it { is_expected.to run.with_params('fo$$o').
9     and_return('$ed$fo$$o$ed$') }
10 end
11 describe 'postgresql_escape', :type => :puppet_function do
12   it { is_expected.to run.with_params('foo$').
13     and_return('$a$foo$$a$') }
14 end