<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/views/leads/_sidebar_show.haml_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -16,7 +16,7 @@
       == #{account.user.id == @current_user.id ? &quot;me&quot; : account.user.full_name}
     - unless @current_user.preference[:accounts_outline] == &quot;brief&quot;
       %dt
-        = link_to(account.website, account.website) &lt;&lt; &quot; | &quot; if account.website?
+        = link_to(account.website, account.website.match(/^https?:\/\//) ? account.website : 'http://' &lt;&lt; account.website) &lt;&lt; &quot; | &quot; if account.website?
         = &quot;phone: &quot; &lt;&lt; (account.toll_free_phone || account.phone) &lt;&lt; &quot; | &quot; if account.toll_free_phone? || account.phone?
         = pluralize(account.contacts.count, &quot;contact&quot;) &lt;&lt; &quot; | &quot;
         = pluralize(account.opportunities.count, &quot;opportunity&quot;)</diff>
      <filename>app/views/accounts/_account.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,12 @@ describe &quot;/accounts/index.html.haml&quot; do
     login_and_assign
   end
 
+  it &quot;should render a proper account website link if an account is provided&quot; do
+    assigns[:accounts] = [ Factory(:account, :website =&gt; 'www.fatfreecrm.com'), Factory(:account) ].paginate
+    render &quot;/accounts/index.html.haml&quot;
+    response.should have_tag(&quot;a[href=http://www.fatfreecrm.com]&quot;)
+  end
+
   it &quot;should render list of accounts if list of accounts is not empty&quot; do
     assigns[:accounts] = [ Factory(:account), Factory(:account) ].paginate
     template.should_receive(:render).with(hash_including(:partial =&gt; &quot;account&quot;))</diff>
      <filename>spec/views/accounts/index.haml_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>07be9dd7864568f4318aca911f4b08d600bac543</id>
    </parent>
    <parent>
      <id>726fd3fb8c8d0c3942c32f241b67f6926f76435c</id>
    </parent>
  </parents>
  <author>
    <name>Mike Dvorkin</name>
    <email>mike@dvorkin.net</email>
  </author>
  <url>http://github.com/enderson/fat_free_crm/commit/176ebfa31c9c1cf3d9a596905dc37c8ce80ac24b</url>
  <id>176ebfa31c9c1cf3d9a596905dc37c8ce80ac24b</id>
  <committed-date>2009-08-21T23:11:31-07:00</committed-date>
  <authored-date>2009-08-21T23:11:31-07:00</authored-date>
  <message>Merge branch 'master' of git://github.com/kinsteronline/fat_free_crm into kinsteronline/master</message>
  <tree>7582be80f9bde81e97f0134114edfceead442bf5</tree>
  <committer>
    <name>Mike Dvorkin</name>
    <email>mike@dvorkin.net</email>
  </committer>
</commit>
