File: encode_url_queries_for_python_spec.rb

package info (click to toggle)
puppet-module-nova 25.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,100 kB
  • sloc: ruby: 11,433; python: 38; sh: 10; makefile: 10
file content (9 lines) | stat: -rw-r--r-- 340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
require 'spec_helper'
require 'puppet'

describe 'encode_url_queries_for_python', :type => :puppet_function do

  it { is_expected.to run.with_params({}).and_return('') }
  it { is_expected.to run.with_params({'a' => 1, 'b' => 2}).and_return('?a=1&b=2') }
  it { is_expected.to run.with_params({'a' => 'b%c'}).and_return('?a=b%%25c') }
end