<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -104,10 +104,11 @@ module Spec
 
           assigns[:action_name] = @action_name
 
-          @request.path_parameters = {
-          :controller =&gt; derived_controller_name(options),
-          :action =&gt; derived_action_name(options)
-          }
+          @request.path_parameters ||= {}
+          @request.path_parameters = @request.path_parameters.update(
+            :controller =&gt; derived_controller_name(options),
+            :action =&gt; derived_action_name(options)
+          )
 
           defaults = { :layout =&gt; false }
           options = defaults.merge options</diff>
      <filename>lib/spec/rails/example/view_example_group.rb</filename>
    </modified>
    <modified>
      <diff>@@ -249,6 +249,15 @@ describe &quot;render 'view_spec/foo/show.rhtml'&quot;, :type =&gt; :view do
   end
 end
 
+describe &quot;setting special parameters&quot; do
+  it &quot;should not clobber path_parameters so customer path variables can be set&quot; do
+    # hmm, no request object here?
+    request.path_parameters = {:required_parameter =&gt; 'foo'}
+    render &quot;view_spec/entry_form&quot;
+    request.path_parameters[:required_parameter].should == 'foo'
+  end
+end
+
 module Spec
   module Rails
     module Example</diff>
      <filename>spec/rails/example/view_spec_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8ff43c08f38456537cc0071e8881cd3bcea1cc47</id>
    </parent>
  </parents>
  <author>
    <name>Mike Vincent</name>
    <email>mike@cryingwhilecoding.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/fb8468b2860fd5b949d2eb54fb9738dcddb25897</url>
  <id>fb8468b2860fd5b949d2eb54fb9738dcddb25897</id>
  <committed-date>2008-11-21T17:02:10-08:00</committed-date>
  <authored-date>2008-08-07T13:05:23-07:00</authored-date>
  <message>Attempted fix for additional parameters in view specs</message>
  <tree>cf9cf2352bb7463b98ae1b5fe71fecd12df55243</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </committer>
</commit>
