mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
10 lines
269 B
Ruby
10 lines
269 B
Ruby
|
require File.expand_path('../../../spec_helper', __FILE__)
|
||
|
|
||
|
require 'base64'
|
||
|
|
||
|
describe "Base64#decode64" do
|
||
|
it "returns the Base64-decoded version of the given string" do
|
||
|
Base64.decode64("U2VuZCByZWluZm9yY2VtZW50cw==\n").should == "Send reinforcements"
|
||
|
end
|
||
|
end
|