<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -58,6 +58,7 @@ class FlowMeter &lt; ActiveRecord::Base
   
   def cleaned_up_url(att)
     new_att = self[att].gsub(%r{//+},'/').gsub(%r{\s+},'')
+    new_att.gsub!(%r{\/$},'') unless new_att == '/'
     new_att.gsub!(%r{^/},'') unless new_att == '/'
     new_att
   end</diff>
      <filename>app/models/flow_meter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -64,6 +64,12 @@ describe FlowMeter do
     @flow_meter.redirect_url.should == 'chop'
   end
   
+  it &quot;should remove a trailing slash from the catch_url before saving&quot; do
+    @flow_meter.catch_url = '/no_trailing_slash/'
+    @flow_meter.save
+    @flow_meter.catch_url.should == 'no_trailing_slash'
+  end
+  
   it &quot;should remove all whitespace from catch_url before saving&quot; do
     @flow_meter.catch_url = &quot;hello there&quot;
     @flow_meter.save
@@ -107,6 +113,7 @@ describe FlowMeter do
   end
 
   it &quot;should load save all flow_meters into FlowMeter.all, a Hash with the catch_url as the key, and an array of redirect_url and status as the value&quot; do
+    FlowMeter.destroy_all
     @flow_meter.save
     FlowMeter.all.should == {'stuff' =&gt; ['things', '307 Temporarily Moved']}
   end</diff>
      <filename>spec/models/flow_meter_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>739c155cb18992209d7e81890f36fdbfe8baf138</id>
    </parent>
  </parents>
  <author>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </author>
  <url>http://github.com/jomz/radiant-vapor-extension/commit/8305de17c0f7413980f09a65106dd56ac63d812a</url>
  <id>8305de17c0f7413980f09a65106dd56ac63d812a</id>
  <committed-date>2008-12-30T13:55:01-08:00</committed-date>
  <authored-date>2008-12-30T13:55:01-08:00</authored-date>
  <message>disallow trailing slash in db</message>
  <tree>d70a791d5a01699b181acd810cf61fb5836ebc71</tree>
  <committer>
    <name>Jim Gay</name>
    <email>jim@saturnflyer.com</email>
  </committer>
</commit>
