Revision 2a616445
Added by Justin Sherrill almost 10 years ago
modules/postgresql/spec/unit/functions/postgresql_escape_spec.rb | ||
---|---|---|
require 'spec_helper'
|
||
|
||
describe 'postgresql_escape', :type => :puppet_function do
|
||
it { should run.with_params('foo').
|
||
it { is_expected.to run.with_params('foo').
|
||
and_return('$$foo$$') }
|
||
end
|
||
describe 'postgresql_escape', :type => :puppet_function do
|
||
it { should run.with_params('fo$$o').
|
||
it { is_expected.to run.with_params('fo$$o').
|
||
and_return('$ed$fo$$o$ed$') }
|
||
end
|
Also available in: Unified diff
Refs #5029 - specify inital org and location