<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -192,13 +192,15 @@ class ViewTest &lt; WillPaginate::ViewTestCase
       @html_result
   end
 
-  def test_page_entries_info_with_longer_class_name
-    @template = '&lt;%= page_entries_info collection %&gt;'
-    collection = ('a'..'z').to_a.paginate
-    collection.first.stubs(:class).returns(mock('class', :name =&gt; 'ProjectType'))
+  uses_mocha 'class name' do
+    def test_page_entries_info_with_longer_class_name
+      @template = '&lt;%= page_entries_info collection %&gt;'
+      collection = ('a'..'z').to_a.paginate
+      collection.first.stubs(:class).returns(mock('class', :name =&gt; 'ProjectType'))
     
-    paginate collection
-    assert @html_result.index('project types'), &quot;expected &lt;#{@html_result.inspect}&gt; to mention 'project types'&quot;
+      paginate collection
+      assert @html_result.index('project types'), &quot;expected &lt;#{@html_result.inspect}&gt; to mention 'project types'&quot;
+    end
   end
 
   def test_page_entries_info_with_single_page_collection</diff>
      <filename>test/view_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f2a8a597bed50c66f7d1fe187e75fc44d1d28973</id>
    </parent>
  </parents>
  <author>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </author>
  <url>http://github.com/mislav/will_paginate/commit/a6d5b07def1329ebf26e736d3f00219496bf4369</url>
  <id>a6d5b07def1329ebf26e736d3f00219496bf4369</id>
  <committed-date>2008-12-12T00:59:09-08:00</committed-date>
  <authored-date>2008-12-12T00:59:09-08:00</authored-date>
  <message>wrap a test that uses Mocha in #uses_mocha block for consistency</message>
  <tree>7b305fbd98db0c29dd7d8728d91229c847a64e20</tree>
  <committer>
    <name>Mislav Marohni&#263;</name>
    <email>mislav.marohnic@gmail.com</email>
  </committer>
</commit>
