[macruby-changes] [1338] MacRuby/branches/experimental/spec/frozen/library/digest/md5/ equal_spec.rb

source_changes at macosforge.org source_changes at macosforge.org
Sat Apr 4 08:23:42 PDT 2009


Revision: 1338
          http://trac.macosforge.org/projects/ruby/changeset/1338
Author:   eloy.de.enige at gmail.com
Date:     2009-04-04 08:23:42 -0700 (Sat, 04 Apr 2009)
Log Message:
-----------
Style fix for digest mock.

Modified Paths:
--------------
    MacRuby/branches/experimental/spec/frozen/library/digest/md5/equal_spec.rb

Modified: MacRuby/branches/experimental/spec/frozen/library/digest/md5/equal_spec.rb
===================================================================
--- MacRuby/branches/experimental/spec/frozen/library/digest/md5/equal_spec.rb	2009-04-04 15:23:31 UTC (rev 1337)
+++ MacRuby/branches/experimental/spec/frozen/library/digest/md5/equal_spec.rb	2009-04-04 15:23:42 UTC (rev 1338)
@@ -16,7 +16,8 @@
   it 'should be equal to appropriate object that responds to to_str' do
     # blank digest
     cur_digest = Digest::MD5.new
-    (obj = mock(MD5Constants::BlankHexdigest)).should_receive(:to_str).and_return(MD5Constants::BlankHexdigest)
+    obj = mock(MD5Constants::BlankHexdigest)
+    obj.should_receive(:to_str).and_return(MD5Constants::BlankHexdigest)
     cur_digest.should == obj
 
     # non-blank digest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090404/cfd0788d/attachment-0001.html>


More information about the macruby-changes mailing list