Skip to content

Commit 8513491

Browse files
bjfisheregon
authored andcommitted
Fix base64 decoding issue with unpack m
1 parent 50e7c8f commit 8513491

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/base64/decode64_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@
2222
it "returns a binary encoded string" do
2323
Base64.decode64("SEk=").encoding.should == Encoding::BINARY
2424
end
25+
26+
it "decodes without padding suffix ==" do
27+
Base64.decode64("eyJrZXkiOnsibiI6InR0dCJ9fQ").should == "{\"key\":{\"n\":\"ttt\"}}"
28+
end
2529
end

0 commit comments

Comments
 (0)