diff options
Diffstat (limited to 'spec/ruby/library/base64/decode64_spec.rb')
-rw-r--r-- | spec/ruby/library/base64/decode64_spec.rb | 4 |
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 |