Files
news.gitea.happylizard.me/bin/gems/safe_yaml-1.0.5/spec/transform/base64_spec.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

12 lines
346 B
Ruby

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