Sha256: 5557531f0cdb0bfec0907c9e5118b9a7e0bac8c081451a6a94b39735bbb93014

Contents?: true

Size: 346 Bytes

Versions: 99

Compression:

Stored size: 346 Bytes

Contents

require "spec_helper"

describe SafeYAML::Transform do
  it "should return the same encoding when decoding Base64" do
    value = "c3VyZS4="
    decoded = SafeYAML::Transform.to_proper_type(value, false, "!binary")

    expect(decoded).to eq("sure.")
    expect(decoded.encoding).to eq(value.encoding) if decoded.respond_to?(:encoding)
  end
end

Version data entries

99 entries across 91 versions & 13 rubygems

Version Path
cloudsmith-api-0.49.13 vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
cloudsmith-api-0.49.9 vendor/bundle/ruby/2.3.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
safe_yaml-1.0.5 spec/transform/base64_spec.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb