[84159] branches/gsoc11-statistics/stats-server/spec/models/user_spec.rb

derek at macports.org derek at macports.org
Mon Sep 19 11:56:06 PDT 2011


Revision: 84159
          http://trac.macports.org/changeset/84159
Author:   derek at macports.org
Date:     2011-09-19 11:56:06 -0700 (Mon, 19 Sep 2011)
Log Message:
-----------
Use @user.errors[:uuid] rather than the deprecated errors.on

Modified Paths:
--------------
    branches/gsoc11-statistics/stats-server/spec/models/user_spec.rb

Modified: branches/gsoc11-statistics/stats-server/spec/models/user_spec.rb
===================================================================
--- branches/gsoc11-statistics/stats-server/spec/models/user_spec.rb	2011-09-19 18:54:03 UTC (rev 84158)
+++ branches/gsoc11-statistics/stats-server/spec/models/user_spec.rb	2011-09-19 18:56:06 UTC (rev 84159)
@@ -22,7 +22,7 @@
   it "should only have a valid uuid" do
     @user.uuid = 'ABC-INVALID-UUID'
     @user.should be_invalid
-    @user.errors.on(:uuid).should == "uuid must be a valid universally unique identifier"
+    @user.errors[:uuid].should == ["uuid must be a valid universally unique identifier"]
             
     # A valid UUID - generated with uuidgen
     @user.uuid = 'BD5C379F-F485-4C89-A3DB-20A3476116F1'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110919/433d2c1e/attachment.html>


More information about the macports-changes mailing list