<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,7 +4,7 @@ Merb.start :environment =&gt; 'test', :log_level =&gt; :fatal
 
 class TestController &lt; Merb::Controller
   def get(id = nil); end
-  def post; end
+  def post(version = nil); end
 end
 
 class IDish
@@ -21,6 +21,7 @@ describe Merb::Test::Rspec::RouteMatchers do
 
   before(:each) do
     Merb::Router.prepare do |r|
+      r.match(%r&quot;/v(\d+\.\d+)&quot;, :method =&gt; :post).to(:controller =&gt; &quot;test_controller&quot;, :action =&gt; &quot;post&quot;, :version =&gt; &quot;[1]&quot;)
       r.match(&quot;/&quot;, :method =&gt; :get).to(:controller =&gt; &quot;test_controller&quot;, :action =&gt; &quot;get&quot;).name(:getter)
       r.match(&quot;/&quot;, :method =&gt; :post).to(:controller =&gt; &quot;test_controller&quot;, :action =&gt; &quot;post&quot;)
       r.match(&quot;/:id&quot;).to(:controller =&gt; &quot;test_controller&quot;, :action =&gt; &quot;get&quot;).name(:with_id)
@@ -35,8 +36,18 @@ describe Merb::Test::Rspec::RouteMatchers do
 
     it &quot;should work with the url helper and ParamMatcher&quot; do
       idish = IDish.new(rand(1000).to_s)
+      
       request_to(url(:with_id, idish)).should route_to(TestController, :get).with(idish)
     end
+
+    it &quot;should work with a negative ParamMatcher&quot; do
+      request_to(url(:with_id, :id =&gt; 100)).should_not route_to(TestController, :get).with(:id =&gt; 1)
+    end
+
+    it &quot;should work with a route containing a regexp&quot; do
+      request_to(&quot;/v1.2&quot;, :post).should route_to(TestController, :post).with(:version =&gt; &quot;1.2&quot;)
+      request_to(&quot;/v1.0&quot;, :post).should_not route_to(TestController, :post).with(:version =&gt; &quot;3.14&quot;)
+    end
   end
 
   module Merb::Test::Rspec::RouteMatchers</diff>
      <filename>spec/public/test/route_matchers_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1fed4e5b1c95b145e9e30d2679417348678adda5</id>
    </parent>
  </parents>
  <author>
    <name>Ben Burkert</name>
    <email>ben@benburkert.com</email>
  </author>
  <url>http://github.com/wycats/merb-core/commit/38f1b58fc2a0c9be3b21ccb5da03f38d4c9166a9</url>
  <id>38f1b58fc2a0c9be3b21ccb5da03f38d4c9166a9</id>
  <committed-date>2008-06-27T16:16:40-07:00</committed-date>
  <authored-date>2008-06-27T16:16:40-07:00</authored-date>
  <message>Added spec for the route matcher testing regexp routes. [#386]</message>
  <tree>db483b9d5b9282be24366f8ccea75b0b8846513f</tree>
  <committer>
    <name>Ben Burkert</name>
    <email>ben@benburkert.com</email>
  </committer>
</commit>
