<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -155,4 +155,15 @@ describe Link, 'to_api_xml' do
   it &quot;should return the proper XML&quot; do
     @link.to_api_xml.should == '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;link&gt;&lt;website_url&gt;' + @link.website_url + '&lt;/website_url&gt;&lt;permalink&gt;' + @link.permalink + '&lt;/permalink&gt;&lt;/link&gt;'
   end
+end
+
+describe Link, 'to_api_json' do
+  before( :each ) do
+    @link = Link.new( { :website_url =&gt; 'http://github.com/robbyrussell/', :ip_address =&gt; '127.0.0.1' } )
+    @link.save
+  end
+  
+  it &quot;should return the proper JSON&quot; do
+    @link.to_api_json.should == '{&quot;link&quot;: {&quot;permalink&quot;: &quot;' + @link.permalink + '&quot;, &quot;website_url&quot;: &quot;' + @link.website_url + '&quot;}}'
+  end
 end
\ No newline at end of file</diff>
      <filename>spec/models/link_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>36bcd0716a0a86fdaaf352d7760653b886877f2e</id>
    </parent>
  </parents>
  <author>
    <name>Robby Russell</name>
    <email>robby@planetargon.com</email>
  </author>
  <url>http://github.com/robbyrussell/rubyurl/commit/28784511ab4f6badfc97988429c4e9f0d4d1ef66</url>
  <id>28784511ab4f6badfc97988429c4e9f0d4d1ef66</id>
  <committed-date>2008-09-01T18:13:59-07:00</committed-date>
  <authored-date>2008-09-01T18:13:59-07:00</authored-date>
  <message>Adding a spec for .to_api_json</message>
  <tree>efd9868bfaf5e96e74be94892d720f227608bae0</tree>
  <committer>
    <name>Robby Russell</name>
    <email>robby@planetargon.com</email>
  </committer>
</commit>
