puppet/modules/postgresql/spec/unit/functions/postgresql_escape_spec.rb
2014-07-11 13:30:23 -05:00

10 lines
289 B
Ruby

require 'spec_helper'
describe 'postgresql_escape', :type => :puppet_function do
it { should run.with_params('foo').
and_return('$$foo$$') }
end
describe 'postgresql_escape', :type => :puppet_function do
it { should run.with_params('fo$$o').
and_return('$ed$fo$$o$ed$') }
end