Sha256: 9ef049b5d41e31c3a2b322a0e939b95b18bb305d05ae2d578b8235d55424cb70

Contents?: true

Size: 229 Bytes

Versions: 3

Compression:

Stored size: 229 Bytes

Contents

require 'spec_helper'
require 'conjur/id'

describe 'url escaping' do
  it 'Id to path is escaped' do
    id = Conjur::Id.new('cucumber:variable:foo bar')
    expect(id.to_url_path).to eq('cucumber/variable/foo%20bar')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conjur-api-5.3.0 spec/uri_escape_spec.rb
conjur-api-5.2.1 spec/uri_escape_spec.rb
conjur-api-5.2.0 spec/uri_escape_spec.rb