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
brakeman-3.3.4 bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-1.8.5.2 vendor/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-1.8.5.1 vendor/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
brakeman-3.3.3 bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-1.8.4.2 vendor/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-1.8.4.1 vendor/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
brakeman-3.3.2 bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
brakeman-3.3.1 bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
brakeman-3.3.0 bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
vagrant-unbundled-1.8.1.1 vendor/bundle/ruby/2.3.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
dwolla_swagger-1.0.6 vendor/bundle/ruby/2.2.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/safe_yaml-1.0.4/spec/transform/base64_spec.rb
safe_yaml-1.0.4 spec/transform/base64_spec.rb