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-retrospec-0.12.2 vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.7 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.7-x86-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.7-x64-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.6 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.6-x86-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-retrospec-0.12.1 vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.6-x64-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-retrospec-0.12.0 vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.5 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.5-x86-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.5-x64-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.4 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.4-x86-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-3.8.4-x64-mingw32 lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-retrospec-0.11.0 vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-retrospec-0.10.0 vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-retrospec-0.9.1 vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-retrospec-0.9.0 vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb
puppet-retrospec-0.8.1 vendor/gems/puppet-3.7.3/lib/puppet/vendor/safe_yaml/spec/transform/base64_spec.rb