File: encode_url_queries_for_python_spec.rb

package info (click to toggle)
puppet-module-nova 27.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,068 kB
  • sloc: ruby: 11,144; python: 33; makefile: 10; sh: 10
file content (9 lines) | stat: -rw-r--r-- 340 bytes parent folder | download | duplicates (2)
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