<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -92,6 +92,9 @@ module Spec
           session['flash'] = @flash
 
           ActionView::Helpers::AssetTagHelper::reset_javascript_include_default
+          
+          helper_controller = @controller
+          helper.instance_eval { @controller = helper_controller }
         end
 
         def flash</diff>
      <filename>lib/spec/rails/example/helper_example_group.rb</filename>
    </modified>
    <modified>
      <diff>@@ -27,6 +27,9 @@ module Spec
         it &quot;should have access to named routes&quot; do
           rspec_on_rails_specs_url.should == &quot;http://test.host/rspec_on_rails_specs&quot;
           rspec_on_rails_specs_path.should == &quot;/rspec_on_rails_specs&quot;
+
+          helper.named_url.should == &quot;http://test.host/rspec_on_rails_specs&quot;
+          helper.named_path.should == &quot;/rspec_on_rails_specs&quot;
         end
 
         it &quot;should fail if the helper method deson't exist&quot; do
@@ -89,10 +92,10 @@ module Spec
         helpers &lt;&lt; ActionView::Helpers::PaginationHelper rescue nil       #removed for 2.0
         helpers &lt;&lt; ActionView::Helpers::JavaScriptMacrosHelper rescue nil #removed for 2.0
         helpers.each do |helper_module|
-          # it &quot;should include #{helper_module}&quot; do
-          #   self.class.ancestors.should include(helper_module)
-          #   helper.class.ancestors.should include(helper_module)
-          # end
+          it &quot;should include #{helper_module}&quot; do
+            self.class.ancestors.should include(helper_module)
+            helper.class.ancestors.should include(helper_module)
+          end
         end
       end
       </diff>
      <filename>spec/rails/example/helper_spec_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,4 +7,12 @@ module ExplicitHelper
   def prepend(arg, &amp;block)
     concat(arg, block.binding) + block.call
   end
+  
+  def named_url
+    rspec_on_rails_specs_url
+  end
+  
+  def named_path
+    rspec_on_rails_specs_path
+  end
 end</diff>
      <filename>spec_resources/helpers/explicit_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>385420313b64a4ba329c8f32e0796773fc95496c</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <login>dchelimsky</login>
    <email>dchelimsky@gmail.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/a46a78d752a68814851db5111dfa957886ef9da8</url>
  <id>a46a78d752a68814851db5111dfa957886ef9da8</id>
  <committed-date>2008-06-10T21:23:33-07:00</committed-date>
  <authored-date>2008-06-10T21:23:33-07:00</authored-date>
  <message>Provide controller to the helper object in helper examples to support named routes, url_for, etc. [#433 state:resolved]</message>
  <tree>daa9b779eb805c7f7ee70a5bac71c1d78883e7cf</tree>
  <committer>
    <name>David Chelimsky</name>
    <login>dchelimsky</login>
    <email>dchelimsky@gmail.com</email>
  </committer>
</commit>
