<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,6 +2,18 @@ require 'spec_helper'
 
 describe Url do
  
+  context &quot;when generating an identifier for a new shortened url&quot; do
+
+    it &quot;should convert decimal to base62&quot; do
+      Url.convert_to_base62(42692).should eql('B6a')
+    end
+
+    it &quot;should convert the base62 to decimal&quot; do
+      Url.convert_from_base62('eZe').should eql(155970)
+    end
+
+  end
+
   context &quot;when creating a new shortened url&quot; do
 
     it &quot;should be valid with a supplied url&quot;  do</diff>
      <filename>spec/models/url_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>670a55f80d4e7f79a3b089513c1f69f02ff85d24</id>
    </parent>
  </parents>
  <author>
    <name>Steven Wilkin</name>
    <email>stevenwilkin@gmail.com</email>
  </author>
  <url>http://github.com/stevenwilkin/io.gd/commit/028f25e0cfece536c6800ad4bfbf6ed88196fa55</url>
  <id>028f25e0cfece536c6800ad4bfbf6ed88196fa55</id>
  <committed-date>2009-11-02T15:35:08-08:00</committed-date>
  <authored-date>2009-11-02T15:35:08-08:00</authored-date>
  <message>tests for base62 &lt;-&gt; decimal conversion</message>
  <tree>c642de511d00472040b0ca17c32b112bb27a24ce</tree>
  <committer>
    <name>Steven Wilkin</name>
    <email>stevenwilkin@gmail.com</email>
  </committer>
</commit>
