diff options
Diffstat (limited to 'spec/ruby/library/base64/decode64_spec.rb')
-rw-r--r-- | spec/ruby/library/base64/decode64_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/library/base64/decode64_spec.rb b/spec/ruby/library/base64/decode64_spec.rb new file mode 100644 index 0000000000..34d5ed6989 --- /dev/null +++ b/spec/ruby/library/base64/decode64_spec.rb @@ -0,0 +1,9 @@ +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 |