<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -65,7 +65,7 @@ module Shoulda # :nodoc:
 
         def stringify_params!
           @params.each do |key, value|
-            @params[key] = value.to_param
+            @params[key] = value.is_a?(Array) ? value.collect {|v| v.to_param } : value.to_param
           end
         end
 </diff>
      <filename>lib/shoulda/action_controller/matchers/route_matcher.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,23 @@ require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')
 
 class RouteToMatcherTest &lt; ActionController::TestCase # :nodoc:
 
+  context &quot;given a controller with a defined glob url&quot; do
+    setup do
+      @controller = define_controller('Examples').new
+      define_routes do |map|
+        map.connect 'examples/*id', :controller =&gt; 'examples',
+                                    :action     =&gt; 'example'
+      end
+    end
+
+    should &quot;accept glob route&quot; do
+      assert_accepts route(:get, '/examples/foo/bar').
+                      to(:action =&gt; 'example', :id =&gt; ['foo', 'bar']),
+                    @controller
+    end
+
+  end
+
   context &quot;given a controller with a defined route&quot; do
     setup do
       @controller = define_controller('Examples').new</diff>
      <filename>test/matchers/controller/route_matcher_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2e855629f2b04c63dc3cfd2383e581e52a6cd046</id>
    </parent>
  </parents>
  <author>
    <name>Artiom Diomin</name>
    <email>kron82@gmail.com</email>
  </author>
  <url>http://github.com/thoughtbot/shoulda/commit/21ce037d1228a5f56deac79c55049e33f8dda5ae</url>
  <id>21ce037d1228a5f56deac79c55049e33f8dda5ae</id>
  <committed-date>2009-10-22T18:25:13-07:00</committed-date>
  <authored-date>2009-10-11T11:41:53-07:00</authored-date>
  <message>Recognize glob route params as an array

* Closes #65</message>
  <tree>b67f508e39c7e7376b6dee11ab23902f3b3152f8</tree>
  <committer>
    <name>Ryan McGeary</name>
    <email>ryanongit@mcgeary.org</email>
  </committer>
</commit>
