spec/unit/functions/encode_url_queries_for_python_spec.rb
raw| 1 | require 'spec_helper' |
| 2 | require 'puppet' |
| 3 | |
| 4 | describe 'encode_url_queries_for_python', :type => :puppet_function do |
| 5 | |
| 6 | it { is_expected.to run.with_params({}).and_return('') } |
| 7 | it { is_expected.to run.with_params({'a' => 1, 'b' => 2}).and_return('?a=1&b=2') } |
| 8 | it { is_expected.to run.with_params({'a' => 'b%c'}).and_return('?a=b%%25c') } |
| 9 | end |