summaryrefslogtreecommitdiff
path: root/spec/ruby/library/base64
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2021-09-07 19:01:07 +0200
committerBenoit Daloze <[email protected]>2021-09-07 19:01:07 +0200
commit258661409e9e3fd470f006975ded872778aad4f4 (patch)
tree4cd23fe290feb50f4d41349013dbb41bdf12117f /spec/ruby/library/base64
parenta375640ea561d1f7c4d2d89839007b3a973a04e0 (diff)
Update to ruby/spec@b1e93a2
Diffstat (limited to 'spec/ruby/library/base64')
-rw-r--r--spec/ruby/library/base64/decode64_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/library/base64/decode64_spec.rb b/spec/ruby/library/base64/decode64_spec.rb
index f6cd26d788..6dd33dddfe 100644
--- a/spec/ruby/library/base64/decode64_spec.rb
+++ b/spec/ruby/library/base64/decode64_spec.rb
@@ -22,4 +22,8 @@ describe "Base64#decode64" do
it "returns a binary encoded string" do
Base64.decode64("SEk=").encoding.should == Encoding::BINARY
end
+
+ it "decodes without padding suffix ==" do
+ Base64.decode64("eyJrZXkiOnsibiI6InR0dCJ9fQ").should == "{\"key\":{\"n\":\"ttt\"}}"
+ end
end