<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec/resources/views/view_spec/view_helpers.html.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -47,6 +47,7 @@ module Spec
       #     end
       #   end
       class ViewExampleGroup &lt; FunctionalExampleGroup
+        include ActionView::Helpers
         tests ViewExampleGroupController
         class &lt;&lt; self
           def inherited(klass) # :nodoc:</diff>
      <filename>lib/spec/rails/example/view_example_group.rb</filename>
    </modified>
    <modified>
      <diff>@@ -333,3 +333,17 @@ describe &quot;bug http://rspec.lighthouseapp.com/projects/5645/tickets/510&quot;, :type =
     end
   end
 end
+
+describe &quot;bug https://rspec.lighthouseapp.com/projects/5645/tickets/787&quot;, :type =&gt; :view do
+  describe &quot;a view example checking a link&quot; do
+    it &quot;should have access to link_to&quot; do
+      render &quot;view_spec/view_helpers&quot;
+      response.body.should include(link_to(&quot;edit&quot;, &quot;this_is_the_link&quot;))
+    end
+
+    it &quot;should use link_to within have_tag&quot; do
+      render &quot;view_spec/view_helpers&quot;
+      response.body.should have_tag(&quot;span&quot;, :html =&gt; link_to(&quot;edit&quot;, &quot;this_is_the_link&quot;))
+    end
+  end
+end</diff>
      <filename>spec/spec/rails/example/view_example_group_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bb16ddb982ac0e725a3a17fc631c0165c76cf977</id>
    </parent>
  </parents>
  <author>
    <name>Pat Maddox</name>
    <email>pat.maddox@gmail.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/b0869af2171f9642a3270d53027c3a7d456258d3</url>
  <id>b0869af2171f9642a3270d53027c3a7d456258d3</id>
  <committed-date>2009-04-25T12:20:44-07:00</committed-date>
  <authored-date>2009-04-25T12:17:15-07:00</authored-date>
  <message>Make Rails view helpers available to ViewExampleGroup
Fixes LH#787 (J.B. Rainsberger)</message>
  <tree>572c6764f8807512ad972e0b4a1de40b6d0a1c05</tree>
  <committer>
    <name>Pat Maddox</name>
    <email>pat.maddox@gmail.com</email>
  </committer>
</commit>
