diff options
Diffstat (limited to 'spec/ruby/library/digest/md5/append_spec.rb')
| -rw-r--r-- | spec/ruby/library/digest/md5/append_spec.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/spec/ruby/library/digest/md5/append_spec.rb b/spec/ruby/library/digest/md5/append_spec.rb index ad828c83c1..6f42e4f286 100644 --- a/spec/ruby/library/digest/md5/append_spec.rb +++ b/spec/ruby/library/digest/md5/append_spec.rb @@ -1,7 +1,10 @@ -require File.expand_path('../../../../spec_helper', __FILE__) -require File.expand_path('../shared/constants', __FILE__) -require File.expand_path('../shared/update', __FILE__) +require_relative '../../../spec_helper' +require_relative 'shared/constants' describe "Digest::MD5#<<" do - it_behaves_like(:md5_update, :<<) + it "can update" do + cur_digest = Digest::MD5.new + cur_digest << MD5Constants::Contents + cur_digest.digest.should == MD5Constants::Digest + end end |
