Sha256: e734bd0c9ccf2794675d7144bde1c9e794aad074dd4345bf49378ec1b8e8f731

Contents?: true

Size: 377 Bytes

Versions: 106

Compression:

Stored size: 377 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "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")

    decoded.should == "sure."
    decoded.encoding.should == value.encoding if decoded.respond_to?(:encoding)
  end
end

Version data entries

106 entries across 106 versions & 3 rubygems

Version Path
puppet-3.5.1-x86-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.5.1.rc1 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.5.1.rc1-x86-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.5.0.rc3 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.5.0.rc3-x86-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.5.0.rc2 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.5.0.rc2-x86-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.5.0.rc1 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.5.0.rc1-x86-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.4.3 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
safe_yaml-1.0.1 spec/transform/base64_spec.rb
puppet-2.7.25 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.4.2 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
safe_yaml-1.0.0 spec/transform/base64_spec.rb
puppet-2.7.24 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.4.1 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.4.0 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
safe_yaml-1.0.0rc2 spec/transform/base64_spec.rb
puppet-3.4.0.rc2 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
safe_yaml-1.0.0rc1 spec/transform/base64_spec.rb