module-postgresql/spec/unit/functions/postgresql_escape_spec.rb

11 lines
289 B
Ruby
Raw Normal View History

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