<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
+# encoding: utf-8
 require &quot;test_helper&quot;
 
 class HasPermalinkTest &lt; ActiveSupport::TestCase
@@ -82,6 +83,14 @@ class HasPermalinkTest &lt; ActiveSupport::TestCase
     assert_equal &quot;jdoe&quot;, user.permalink
   end
   
+  test &quot;should create unique permalinks for number-ended titles&quot; do
+    post1 = create_post(:title =&gt; &quot;Rails 3&quot;)
+    assert_equal &quot;rails-3&quot;, post1.permalink
+    
+    post2 = create_post(:title =&gt; &quot;Rails 3&quot;)
+    assert_equal &quot;rails-3-2&quot;, post2.permalink
+  end
+  
   private
     def create_beer(options={})
       Beer.create({:name =&gt; 'Duff'}.merge(options))</diff>
      <filename>test/has_permalink_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,12 @@
 ENV[&quot;RAILS_ENV&quot;] = &quot;test&quot;
 
 require File.expand_path(&quot;../../../../config/environment&quot;)
+
+begin
 require &quot;ruby-debug&quot;
+rescue LoadError
+end
+
 require &quot;test_help&quot;
 
 class Object</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>535dff55306628b838bc4d0252af9a588bf406dd</id>
    </parent>
  </parents>
  <author>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </author>
  <url>http://github.com/fnando/has_permalink/commit/e30b244b361a2772e59a8bf6ed63ee1909ab066d</url>
  <id>e30b244b361a2772e59a8bf6ed63ee1909ab066d</id>
  <committed-date>2009-08-24T11:25:58-07:00</committed-date>
  <authored-date>2009-08-24T11:25:58-07:00</authored-date>
  <message>Officially tested on Ruby 1.9: it works!</message>
  <tree>bbaae28a6ee3e039207c9ed8f10993b694e636c8</tree>
  <committer>
    <name>Nando Vieira</name>
    <email>fnando.vieira@gmail.com</email>
  </committer>
</commit>
