<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>spec_resources/views/view_spec/block_helper.rhtml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -239,6 +239,20 @@ describe &quot;An instantiated ViewExampleGroupController&quot;, :type =&gt; :view do
   end
 end
 
+describe &quot;a block helper&quot;, :type =&gt; :view do
+  it &quot;should not yield when not told to in the example&quot; do
+    template.should_receive(:if_allowed)
+    render &quot;view_spec/block_helper&quot;
+    response.should_not have_tag(&quot;div&quot;,&quot;block helper was rendered&quot;)
+  end
+
+  it &quot;should yield when told to in the example&quot; do
+    template.should_receive(:if_allowed).and_yield
+    render &quot;view_spec/block_helper&quot;
+    response.should have_tag(&quot;div&quot;,&quot;block helper was rendered&quot;)
+  end
+end
+
 describe &quot;render :inline =&gt; ...&quot;, :type =&gt; :view do
   it &quot;should render ERB right in the spec&quot; do
     render :inline =&gt; %|&lt;%= text_field_tag('field_name', 'Value') %&gt;|</diff>
      <filename>spec/rails/example/view_spec_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e6701300f86f798bd47dd879cd5d572a64e49974</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <email>david@chelimac.local</email>
  </author>
  <url>http://github.com/dchelimsky/rspec-rails/commit/7a9d2ce1b3c1f1ac314433f925a46b7bbfa05851</url>
  <id>7a9d2ce1b3c1f1ac314433f925a46b7bbfa05851</id>
  <committed-date>2008-08-11T04:29:38-07:00</committed-date>
  <authored-date>2008-08-11T04:29:38-07:00</authored-date>
  <message>added examples for block helpers</message>
  <tree>48884d749fe221a119ad7e3b4bcb226264128139</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>david@chelimac.local</email>
  </committer>
</commit>
