<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -105,7 +105,7 @@ module Clouder
         else
           # /notes/1234
           if url.path[0,1] == &quot;/&quot;
-            URI.parse(self.uri) + uri
+            (URI.parse(self.uri) + url).to_s
           # 1234
           else
             File.join(&quot;#{self.uri}&quot;, id)</diff>
      <filename>lib/clouder/entity.rb</filename>
    </modified>
    <modified>
      <diff>@@ -138,6 +138,22 @@ describe &quot;Entity&quot; do
     n.last_modified.should == last_modified
   end
 
+  it &quot;should let you retrieve saved objects by URI&quot; do
+    n = Note.new
+    n.text = &quot;My Note&quot;
+    n.author = &quot;John Doe&quot;
+    n.save
+
+    id, etag, last_modified = n.id, n.etag, n.last_modified
+        
+    n = Note.get Note.all.first
+    n.text.should == &quot;My Note&quot;
+    n.author.should == &quot;John Doe&quot;
+    n.id.should == id
+    n.etag.should == etag
+    n.last_modified.should == last_modified
+  end
+
   it &quot;should return nil when trying to retrieve a non-existing object&quot; do
     Note.get(&quot;abcdef&quot;).should == nil
   end</diff>
      <filename>spec/entity_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>da84e25943d35439bd931c97a3894af80088ba8c</id>
    </parent>
  </parents>
  <author>
    <name>Tim Shadel</name>
    <email>github@timshadel.com</email>
  </author>
  <url>http://github.com/timshadel/clouder/commit/472fa172f11831525693ec2e1ad31b242ec36d31</url>
  <id>472fa172f11831525693ec2e1ad31b242ec36d31</id>
  <committed-date>2009-02-23T19:47:35-08:00</committed-date>
  <authored-date>2009-02-23T19:47:35-08:00</authored-date>
  <message>Spec and fix the ability to get by URI

There were two simple things needed:

1. Use 'url' as the variable instead of 'uri'
2. Return a string instead of an URI object.

Signed-off-by: Tim Shadel &lt;github@timshadel.com&gt;</message>
  <tree>c3d9f34c99096b1f794b0e7e80dd33f4bfa2426e</tree>
  <committer>
    <name>Tim Shadel</name>
    <email>github@timshadel.com</email>
  </committer>
</commit>
