<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,18 +5,18 @@ describe Admin::BlacklistController do
     request.session = { :user =&gt; users(:tobi).id }
   end
 
-  def test_index
+  it &quot;test_index&quot; do
     get :index
     assert_template 'index'
   end
 
-  def test_list
+  it &quot;test_list&quot; do
     get :index
     assert_template 'index'
     assert_template_has 'blacklist_patterns'
   end
 
-  def test_create
+  it &quot;test_create&quot; do
     num_blacklist_patterns = BlacklistPattern.count
 
     post :new, 'blacklist_pattern' =&gt; { }
@@ -25,19 +25,19 @@ describe Admin::BlacklistController do
     assert_equal num_blacklist_patterns + 1, BlacklistPattern.count
   end
 
-  def test_edit
+  it &quot;test_edit&quot; do
     get :edit, 'id' =&gt; blacklist_patterns(:first_blacklist_pattern).id
     assert_template 'edit'
     assert_template_has('blacklist_pattern')
     assert assigns(:blacklist_pattern).valid?
   end
 
-  def test_update
+  it &quot;test_update&quot; do
     post :edit, 'id' =&gt; blacklist_patterns(:first_blacklist_pattern).id
     assert_response :redirect, :action =&gt; 'index'
   end
 
-  def test_destroy
+  it &quot;test_destroy&quot; do
     pattern_id = blacklist_patterns(:first_blacklist_pattern).id
     assert_not_nil BlacklistPattern.find(pattern_id)
 </diff>
      <filename>spec/controllers/admin/blacklist_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ describe Admin::CategoriesController do
     request.session = { :user =&gt; users(:tobi).id }
   end
 
-  def test_index
+  it &quot;test_index&quot; do
     get :index
     assert_template 'index'
     assert_template_has 'categories'
@@ -15,26 +15,26 @@ describe Admin::CategoriesController do
       :attributes =&gt; { :id =&gt; &quot;category_container&quot; }
   end
 
-  def test_create
+  it &quot;test_create&quot; do
     assert_difference 'Category.count' do
       post :edit, 'category' =&gt; { :name =&gt; &quot;test category&quot; }
       assert_response :redirect, :action =&gt; 'index'
     end
   end
 
-  def test_edit
+  it &quot;test_edit&quot; do
     get :edit, :id =&gt; categories(:software).id
     assert_template 'new'
     assert_template_has 'category'
     assert assigns(:category).valid?
   end
 
-  def test_update
+  it &quot;test_update&quot; do
     post :edit, :id =&gt; categories(:software).id
     assert_response :redirect, :action =&gt; 'index'
   end
 
-  def test_destroy
+  it &quot;test_destroy&quot; do
     test_id = categories(:software).id
     assert_not_nil Category.find(test_id)
 
@@ -48,14 +48,14 @@ describe Admin::CategoriesController do
     assert_raise(ActiveRecord::RecordNotFound) { Category.find(test_id) }
   end
 
-  def test_order
+  it &quot;test_order&quot; do
     assert_equal categories(:software), Category.find(:first, :order =&gt; :position)
     get :order, :category_list =&gt; [categories(:personal).id, categories(:hardware).id, categories(:software).id]
     assert_response :success
     assert_equal categories(:personal), Category.find(:first, :order =&gt; :position)
   end
 
-  def test_asort
+  it &quot;test_asort&quot; do
     assert_equal categories(:software), Category.find(:first, :order =&gt; :position)
     get :asort
     assert_response :success
@@ -63,7 +63,7 @@ describe Admin::CategoriesController do
     assert_equal categories(:hardware), Category.find(:first, :order =&gt; :position)
   end
 
-  def test_category_container
+  it &quot;test_category_container&quot; do
     get :category_container
     assert_response :success
     assert_template &quot;_categories&quot;
@@ -74,7 +74,7 @@ describe Admin::CategoriesController do
             :only =&gt; { :tag =&gt; /t[dh]/ } } } }
   end
 
-  def test_reorder
+  it &quot;test_reorder&quot; do
     get :reorder
     assert_response :success
     assert_template &quot;reorder&quot;</diff>
      <filename>spec/controllers/admin/categories_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,7 @@ describe Admin::PagesController do
 
   end
 
-  def test_show
+  it &quot;test_show&quot; do
     get :show, :id =&gt; contents(:first_page).id
     assert_response :success
     assert_template &quot;show&quot;
@@ -33,7 +33,7 @@ describe Admin::PagesController do
     assert_equal contents(:first_page), assigns(:page)
   end
 
-  def test_new
+  it &quot;test_new&quot; do
     get :new
     assert_response :success
     assert_template &quot;new&quot;
@@ -55,7 +55,7 @@ describe Admin::PagesController do
     #assert_equal &quot;Page was successfully created.&quot;, flash[:notice]
   end
 
-  def test_edit
+  it &quot;test_edit&quot; do
     get :edit, :id =&gt; contents(:markdown_page).id
     assert_response :success
     assert_template &quot;edit&quot;
@@ -72,7 +72,7 @@ describe Admin::PagesController do
     #assert_equal &quot;Page was successfully updated.&quot;, flash[:notice]
   end
 
-  def test_destroy
+  it &quot;test_destroy&quot; do
     post :destroy, :id =&gt; contents(:another_page).id
     assert_response :redirect, :action =&gt; &quot;list&quot;
     assert_raise(ActiveRecord::RecordNotFound) { Page.find(contents(:another_page).id) }</diff>
      <filename>spec/controllers/admin/pages_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@ describe Admin::ResourcesController do
     @request.session = { :user =&gt; users(:tobi).id }
   end
 
-  def test_index
+  it &quot;test_index&quot; do
     get :index
     assert_response :success
     assert_template 'index'
@@ -13,7 +13,7 @@ describe Admin::ResourcesController do
     assert_not_nil assigns(:resources)
   end
 
-  def test_destroy
+  it &quot;test_destroy&quot; do
     res_id = resources(:resource1).id
     assert_not_nil Resource.find(res_id)
 
@@ -26,7 +26,7 @@ describe Admin::ResourcesController do
     response.should redirect_to(:action =&gt; 'index')
   end
 
-  def test_upload
+  it &quot;test_upload&quot; do
     # unsure how to test upload constructs :'(
   end
 end</diff>
      <filename>spec/controllers/admin/resources_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,18 +12,18 @@ describe Admin::ThemesController, 'ported from the tests' do
   end
 
   # Replace this with your real tests.
-  def test_index
+  it &quot;test_index&quot; do
     get :index
     assert_response :success
     assert_not_nil assigns(:themes)
   end
 
-  def test_switchto
+  it &quot;test_switchto&quot; do
     get :switchto, :theme =&gt; 'typographic'
     assert_response :redirect, :action =&gt; 'index'
   end
 
-  def test_preview
+  it &quot;test_preview&quot; do
     get :preview, :theme =&gt; 'typographic'
     assert_response :success
   end</diff>
      <filename>spec/controllers/admin/themes_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,13 +9,13 @@ describe Admin::UsersController, &quot;rough port of the old functional test&quot; do
       request.session = { :user =&gt; users(:tobi).id }
     end
 
-    def test_index
+    it &quot;test_index&quot; do
       get :index
       assert_template 'index'
       assert_template_has 'users'
     end
 
-    def test_new
+    it &quot;test_new&quot; do
       get :new
       assert_template 'new'
 
@@ -64,7 +64,7 @@ describe Admin::UsersController, &quot;rough port of the old functional test&quot; do
       end
     end
 
-    def test_destroy
+    it &quot;test_destroy&quot; do
       user_count = User.count
       get :destroy, :id =&gt; users(:bob).id
       assert_template 'destroy'</diff>
      <filename>spec/controllers/admin/users_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,28 +19,28 @@ describe BackendController do
   end
 
   # BloggerApi Tests
-  def test_blogger_delete_post
+  it &quot;test_blogger_delete_post&quot; do
     args = [ 'foo', contents(:article3).id, 'tobi', 'whatever', 1 ]
 
     result = invoke_layered :blogger, :deletePost, *args
     assert_raise(ActiveRecord::RecordNotFound) { Article.find(contents(:article3).id) }
   end
 
-  def test_blogger_get_users_blogs
+  it &quot;test_blogger_get_users_blogs&quot; do
     args = [ 'foo', 'tobi', 'whatever' ]
 
     result = invoke_layered :blogger, :getUsersBlogs, *args
     assert_equal 'test blog', result.first['blogName']
   end
 
-  def test_blogger_get_user_info
+  it &quot;test_blogger_get_user_info&quot; do
     args = [ 'foo', 'tobi', 'whatever' ]
 
     result = invoke_layered :blogger, :getUserInfo, *args
     assert_equal 'tobi', result['userid']
   end
 
-  def test_blogger_new_post
+  it &quot;test_blogger_new_post&quot; do
     args = [ 'foo', '1', 'tobi', 'whatever', '&lt;title&gt;new post title&lt;/title&gt;new post *body*', 1]
 
     result = invoke_layered :blogger, :newPost, *args
@@ -55,7 +55,7 @@ describe BackendController do
     assert new_post[:published_at]
   end
 
-  def test_blogger_new_post_no_title
+  it &quot;test_blogger_new_post_no_title&quot; do
     args = [ 'foo', '1', 'tobi', 'whatever', 'new post body for post without title but with a lenghty body', 1]
 
     result = invoke_layered :blogger, :newPost, *args
@@ -66,7 +66,7 @@ describe BackendController do
     assert_equal &quot;&lt;p&gt;new post body for post without title but with a lenghty body&lt;/p&gt;&quot;, new_post.html(:body)
   end
 
-  def test_blogger_new_post_with_categories
+  it &quot;test_blogger_new_post_with_categories&quot; do
     args = [ 'foo', '1', 'tobi', 'whatever', '&lt;title&gt;new post title&lt;/title&gt;&lt;category&gt;Software, Hardware&lt;/category&gt;new post body', 1]
 
     result = invoke_layered :blogger, :newPost, *args
@@ -78,7 +78,7 @@ describe BackendController do
     assert new_post.published?
   end
 
-  def test_blogger_new_post_with_non_existing_categories
+  it &quot;test_blogger_new_post_with_non_existing_categories&quot; do
     args = [ 'foo', '1', 'tobi', 'whatever', '&lt;title&gt;new post title&lt;/title&gt;&lt;category&gt;Idontexist, Hardware&lt;/category&gt;new post body', 1]
 
     result = invoke_layered :blogger, :newPost, *args
@@ -87,28 +87,28 @@ describe BackendController do
     assert_equal [categories(:hardware)], new_post.categories
   end
 
-  def test_blogger_fail_authentication
+  it &quot;test_blogger_fail_authentication&quot; do
     args = [ 'foo', 'tobi', 'using a wrong password' ]
     # This will be a little more useful with the upstream changes in [1093]
     assert_raise(XMLRPC::FaultException) { invoke_layered :blogger, :getUsersBlogs, *args }
   end
 
   # Meta Weblog Tests
-  def test_meta_weblog_get_categories
+  it &quot;test_meta_weblog_get_categories&quot; do
     args = [ 1, 'tobi', 'whatever' ]
 
     result = invoke_layered :metaWeblog, :getCategories, *args
     assert_equal 'Software', result.first
   end
 
-  def test_meta_weblog_get_post
+  it &quot;test_meta_weblog_get_post&quot; do
     args = [ contents(:article1).id, 'tobi', 'whatever' ]
 
     result = invoke_layered :metaWeblog, :getPost, *args
     assert_equal result['title'], contents(:article1).title
   end
 
-  def test_meta_weblog_get_recent_posts
+  it &quot;test_meta_weblog_get_recent_posts&quot; do
     args = [ 1, 'tobi', 'whatever', 2 ]
 
     result = invoke_layered :metaWeblog, :getRecentPosts, *args
@@ -116,7 +116,7 @@ describe BackendController do
     assert_equal result.last['title'], Article.find(:first, :offset =&gt; 1, :order =&gt; 'created_at desc').title
   end
 
-  def test_meta_weblog_delete_post
+  it &quot;test_meta_weblog_delete_post&quot; do
     art_id = contents(:article2).id
     args = [ 1, art_id, 'tobi', 'whatever', 1 ]
 
@@ -124,7 +124,7 @@ describe BackendController do
     assert_raise(ActiveRecord::RecordNotFound) { Article.find(art_id) }
   end
 
-  def test_meta_weblog_edit_post
+  it &quot;test_meta_weblog_edit_post&quot; do
     art_id = contents(:article1).id
     article = Article.find(art_id)
     article.title = &quot;Modified!&quot;
@@ -146,7 +146,7 @@ describe BackendController do
   end
 
   # TODO: Work out what the correct response is when a post can't be saved...
-  def test_meta_weblog_new_post_fails
+  it &quot;test_meta_weblog_new_post_fails&quot; do
     @article = Article.new(:title =&gt; 'test', :body =&gt; 'body', :extended =&gt; 'extended',
                            :text_filter =&gt; TextFilter.find_by_name('textile'),
                            :published_at =&gt; Time.now.utc.midnight)
@@ -159,7 +159,7 @@ describe BackendController do
                   'Internal server error (exception raised)')
   end
 
-  def test_meta_weblog_new_post
+  it &quot;test_meta_weblog_new_post&quot; do
     article = Article.new
     article.title = &quot;Posted via Test&quot;
     article.body = &quot;body&quot;
@@ -182,7 +182,7 @@ describe BackendController do
     assert_equal article.published_at, new_post.published_at.utc
   end
 
-  def test_meta_weblog_new_unpublished_post_with_blank_creation_date
+  it &quot;test_meta_weblog_new_unpublished_post_with_blank_creation_date&quot; do
     dto = MetaWeblogStructs::Article.new(
       :description       =&gt; &quot;Some text&quot;,
       :title             =&gt; &quot;A Title&quot;
@@ -196,7 +196,7 @@ describe BackendController do
     assert !new_post.published?
   end
   
-  def test_meta_weblog_edit_unpublished_post_with_old_creation_date
+  it &quot;test_meta_weblog_edit_unpublished_post_with_old_creation_date&quot; do
     article = Article.new
     article.title = &quot;Posted via Test&quot;
     article.body = &quot;body&quot;
@@ -212,7 +212,7 @@ describe BackendController do
     assert !new_post.published?
   end
   
-  def test_meta_weblog_new_media_object
+  it &quot;test_meta_weblog_new_media_object&quot; do
     media_object = MetaWeblogStructs::MediaObject.new(
       &quot;name&quot; =&gt; Digest::SHA1.hexdigest(&quot;upload-test--#{Time.now}--&quot;) + &quot;.gif&quot;,
       &quot;type&quot; =&gt; &quot;image/gif&quot;,
@@ -226,13 +226,13 @@ describe BackendController do
     assert File.unlink(File.expand_path(RAILS_ROOT) + &quot;/public/files/#{media_object['name']}&quot;)
   end
 
-  def test_meta_weblog_fail_authentication
+  it &quot;test_meta_weblog_fail_authentication&quot; do
     args = [ 1, 'tobi', 'using a wrong password', 2 ]
     # This will be a little more useful with the upstream changes in [1093]
     assert_raise(XMLRPC::FaultException) { invoke_layered :metaWeblog, :getRecentPosts, *args }
   end
 
-  def test_meta_weblog_should_preserve_date_time_on_roundtrip_edit
+  it &quot;test_meta_weblog_should_preserve_date_time_on_roundtrip_edit&quot; do
     # The XML-RPC spec and the MetaWeblog API are ambiguous about how to
     # intrepret the timezone in the dateCreated field.  But _however_ we
     # interpret it, we want to be able to fetch an article from the server,
@@ -253,14 +253,14 @@ describe BackendController do
 
   # Movable Type Tests
 
-  def test_mt_get_category_list
+  it &quot;test_mt_get_category_list&quot; do
     args = [ 1, 'tobi', 'whatever' ]
 
     result = invoke_layered :mt, :getCategoryList, *args
     assert result.map { |c| c['categoryName'] }.include?('Software')
   end
 
-  def test_mt_get_post_categories
+  it &quot;test_mt_get_post_categories&quot; do
     art_id = contents(:article1).id
     article = Article.find(art_id)
     article.categories &lt;&lt; categories(:software)
@@ -271,14 +271,14 @@ describe BackendController do
     assert_equal Set.new(result.collect {|v| v['categoryName']}), Set.new(article.categories.collect(&amp;:name))
   end
 
-  def test_mt_get_recent_post_titles
+  it &quot;test_mt_get_recent_post_titles&quot; do
     args = [ 1, 'tobi', 'whatever', 2 ]
 
     result = invoke_layered :mt, :getRecentPostTitles, *args
     assert_equal result.first['title'], contents(:article2).title
   end
 
-  def test_mt_set_post_categories
+  it &quot;test_mt_set_post_categories&quot; do
     art_id = contents(:article2).id
     args = [ art_id, 'tobi', 'whatever',
       [MovableTypeStructs::CategoryPerPost.new('categoryName' =&gt; 'personal', 'categoryId' =&gt; categories(:personal).id, 'isPrimary' =&gt; 1)] ]
@@ -296,19 +296,19 @@ describe BackendController do
 
   end
 
-  def test_mt_supported_text_filters
+  it &quot;test_mt_supported_text_filters&quot; do
     result = invoke_layered :mt, :supportedTextFilters
     assert result.map {|f| f['label']}.include?('Markdown')
     assert result.map {|f| f['label']}.include?('Textile')
   end
 
-  def test_mt_supported_methods
+  it &quot;test_mt_supported_methods&quot; do
     result = invoke_layered :mt, :supportedMethods
     assert_equal 8, result.size
     assert result.include?(&quot;publishPost&quot;)
   end
 
-  def test_mt_get_trackback_pings
+  it &quot;test_mt_get_trackback_pings&quot; do
     args = [ contents(:article1).id ]
 
     result = invoke_layered :mt, :getTrackbackPings, *args
@@ -316,7 +316,7 @@ describe BackendController do
     assert_equal result.first['pingTitle'], 'Trackback Entry'
   end
 
-  def test_mt_publish_post
+  it &quot;test_mt_publish_post&quot; do
     art_id = contents(:article4).id
     args = [ art_id, 'tobi', 'whatever' ]
 
@@ -329,7 +329,7 @@ describe BackendController do
     assert Article.find(art_id)[:published_at]
   end
 
-  def test_mt_fail_authentication
+  it &quot;test_mt_fail_authentication&quot; do
     args = [ 1, 'tobi', 'using a wrong password', 2 ]
     # This will be a little more useful with the upstream changes in [1093]
     assert_raise(XMLRPC::FaultException) { invoke_layered :mt, :getRecentPostTitles, *args }</diff>
      <filename>spec/controllers/backend_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -101,7 +101,7 @@ end
 
 ## Old tests that still need conversion
 
-#   def test_autodiscovery_category
+#   it &quot;test_autodiscovery_category&quot; do
 #     get :category, :id =&gt; 'hardware'
 #     assert_response :success
 #     assert_select 'link[title=RSS]' do</diff>
      <filename>spec/controllers/categories_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -131,7 +131,7 @@ end
 
 ## Old tests that still need conversion
 
-#   def test_autodiscovery_tag
+#   it &quot;test_autodiscovery_tag&quot; do
 #     get :tag, :id =&gt; 'hardware'
 #     assert_response :success
 #     assert_select 'link[title=RSS]' do</diff>
      <filename>spec/controllers/tags_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,17 +25,17 @@ describe TextfilterController do
     @whiteboard = nil
   end
 
-  def test_unknown
+  it &quot;test_unknown&quot; do
     text = filter_text('*foo*',[:unknowndoesnotexist])
     assert_equal '*foo*', text
   end
 
-  def test_smartypants
+  it &quot;test_smartypants&quot; do
     text = filter_text('&quot;foo&quot;',[:smartypants])
     assert_equal '&amp;#8220;foo&amp;#8221;', text
   end
 
-  def test_markdown
+  it &quot;test_markdown&quot; do
     text = filter_text('*foo*', [:markdown])
     assert_equal '&lt;p&gt;&lt;em&gt;foo&lt;/em&gt;&lt;/p&gt;', text
 
@@ -43,7 +43,7 @@ describe TextfilterController do
     assert_equal &quot;&lt;p&gt;foo&lt;/p&gt;\n\n&lt;p&gt;bar&lt;/p&gt;&quot;, text
   end
 
-  def test_filterchain
+  it &quot;test_filterchain&quot; do
     assert_equal '&lt;p&gt;&lt;em&gt;&amp;#8220;foo&amp;#8221;&lt;/em&gt;&lt;/p&gt;',
       filter_text('*&quot;foo&quot;*',[:markdown,:smartypants])
 
@@ -51,7 +51,7 @@ describe TextfilterController do
       filter_text('*&quot;foo&quot;*',[:doesntexist1,:markdown,&quot;doesn't exist 2&quot;,:smartypants,:nopenotmeeither])
   end
 
-  def test_flickr
+  it &quot;test_flickr&quot; do
     assert_equal &quot;&lt;div style=\&quot;float:left\&quot; class=\&quot;flickrplugin\&quot;&gt;&lt;a href=\&quot;http://www.flickr.com/users/scottlaird/31366117\&quot;&gt;&lt;img src=\&quot;http://photos23.flickr.com/31366117_b1a791d68e_s.jpg\&quot; width=\&quot;75\&quot; height=\&quot;75\&quot; alt=\&quot;Matz\&quot; title=\&quot;Matz\&quot;/&gt;&lt;/a&gt;&lt;p class=\&quot;caption\&quot; style=\&quot;width:75px\&quot;&gt;This is Matz, Ruby's creator&lt;/p&gt;&lt;/div&gt;&quot;,
       filter_text('&lt;typo:flickr img=&quot;31366117&quot; size=&quot;Square&quot; style=&quot;float:left&quot;/&gt;',
         [:macropre,:macropost],
@@ -70,7 +70,7 @@ describe TextfilterController do
         {'flickr-user' =&gt; 'scott@sigkill.org'})
   end
 
-  def test_broken_flickr_link
+  it &quot;test_broken_flickr_link&quot; do
     assert_equal %{&lt;div class='broken_flickr_link'&gt;\`notaflickrid\' could not be displayed because: &lt;br /&gt;Photo not found&lt;/div&gt;},
       filter_text('&lt;typo:flickr img=&quot;notaflickrid&quot; /&gt;',
         [:macropre, :macropost],
@@ -117,12 +117,12 @@ end
     end
   end
 
-  def test_named_filter
+  it &quot;test_named_filter&quot; do
     assert_equal '&lt;p&gt;&lt;em&gt;&amp;#8220;foo&amp;#8221;&lt;/em&gt;&lt;/p&gt;',
       TextFilter.filter_text_by_name(blog, '*&quot;foo&quot;*', 'markdown smartypants')
   end
 
-  def test_code_plus_markup_chain
+  it &quot;test_code_plus_markup_chain&quot; do
     text = &lt;&lt;-EOF
 *header text here*
 
@@ -165,7 +165,7 @@ EOF
     assert_equal expects_textile.strip, TextFilter.filter_text_by_name(blog, text, 'textile')
   end
 
-  def test_lightbox
+  it &quot;test_lightbox&quot; do
     assert_equal &quot;&lt;div style=\&quot;float:left\&quot; class=\&quot;lightboxplugin\&quot;&gt;&lt;a href=\&quot;http://photos23.flickr.com/31366117_b1a791d68e_b.jpg\&quot; rel=\&quot;lightbox\&quot; title=\&quot;Matz\&quot;&gt;&lt;img src=\&quot;http://photos23.flickr.com/31366117_b1a791d68e_t.jpg\&quot; width=\&quot;67\&quot; height=\&quot;100\&quot; alt=\&quot;Matz\&quot; title=\&quot;Matz\&quot;/&gt;&lt;/a&gt;&lt;p class=\&quot;caption\&quot; style=\&quot;width:67px\&quot;&gt;This is Matz, Ruby's creator&lt;/p&gt;&lt;/div&gt;&quot;,
       filter_text('&lt;typo:lightbox img=&quot;31366117&quot; thumbsize=&quot;Thumbnail&quot; displaysize=&quot;Large&quot; style=&quot;float:left&quot;/&gt;',
         [:macropre,:macropost],</diff>
      <filename>spec/controllers/textfilter_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../spec_helper'
 describe ThemeController do
   integrate_views
 
-  def test_stylesheets
+  it &quot;test_stylesheets&quot; do
     get :stylesheets, :filename =&gt; &quot;style.css&quot;
     assert_response :success
     assert_equal &quot;text/css&quot;, @response.content_type
@@ -11,19 +11,19 @@ describe ThemeController do
     assert_equal &quot;inline; filename=\&quot;style.css\&quot;&quot;, @response.headers['Content-Disposition']
   end
 
-  def test_images
+  it &quot;test_images&quot; do
     get :images, :filename =&gt; &quot;bg_white.png&quot;
     assert_response :success
     assert_equal &quot;image/png&quot;, @response.content_type
     assert_equal &quot;inline; filename=\&quot;bg_white.png\&quot;&quot;, @response.headers['Content-Disposition']
   end
 
-  def test_malicious_path
+  it &quot;test_malicious_path&quot; do
     get :stylesheets, :filename =&gt; &quot;../../../config/database.yml&quot;
     assert_response 404
   end
 
-  def test_view_theming
+  it &quot;test_view_theming&quot; do
     get :static_view_test
     assert_response :success
 </diff>
      <filename>spec/controllers/theme_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -57,17 +57,17 @@ describe XmlController do
     end
   end
 
-  def test_feed_rss20
+  it &quot;test_feed_rss20&quot; do
     get :feed, :format =&gt; 'rss20', :type =&gt; 'feed'
     assert_moved_permanently_to 'http://test.host/articles.rss'
   end
 
-  def test_feed_rss20_comments
+  it &quot;test_feed_rss20_comments&quot; do
     get :feed, :format =&gt; 'rss20', :type =&gt; 'comments'
     assert_moved_permanently_to admin_comments_url(:format=&gt;:rss)
   end
 
-  def test_feed_rss20_trackbacks
+  it &quot;test_feed_rss20_trackbacks&quot; do
     get :feed, :format =&gt; 'rss20', :type =&gt; 'trackbacks'
     assert_response :success
     assert_xml @response.body
@@ -75,34 +75,34 @@ describe XmlController do
     assert_rss20
   end
 
-  def test_feed_rss20_article
+  it &quot;test_feed_rss20_article&quot; do
     get :feed, :format =&gt; 'rss20', :type =&gt; 'article', :id =&gt; contents(:article1).id
     assert_moved_permanently_to contents(:article1).permalink_by_format(:rss)
   end
 
-  def test_feed_rss20_category
+  it &quot;test_feed_rss20_category&quot; do
     get :feed, :format =&gt; 'rss20', :type =&gt; 'category', :id =&gt; 'personal'
     assert_moved_permanently_to(category_url('personal', :format =&gt; 'rss'))
   end
 
-  def test_feed_rss20_tag
+  it &quot;test_feed_rss20_tag&quot; do
     get :feed, :format =&gt; 'rss20', :type =&gt; 'tag', :id =&gt; 'foo'
     assert_moved_permanently_to(tag_url('foo', :format=&gt;'rss'))
   end
 
-  def test_feed_atom10_feed
+  it &quot;test_feed_atom10_feed&quot; do
     get :feed, :format =&gt; 'atom10', :type =&gt; 'feed'
     assert_response :moved_permanently
     assert_moved_permanently_to &quot;http://test.host/articles.atom&quot;
   end
 
-  def test_feed_atom10_comments
+  it &quot;test_feed_atom10_comments&quot; do
     get :feed, :format =&gt; 'atom10', :type =&gt; 'comments'
     assert_response :moved_permanently
     assert_moved_permanently_to admin_comments_url(:format=&gt;'atom')
   end
 
-  def test_feed_atom10_trackbacks
+  it &quot;test_feed_atom10_trackbacks&quot; do
     get :feed, :format =&gt; 'atom10', :type =&gt; 'trackbacks'
     assert_response :success
     assert_xml @response.body
@@ -117,47 +117,47 @@ describe XmlController do
     assert_select 'summary'
   end
 
-  def test_feed_atom10_article
+  it &quot;test_feed_atom10_article&quot; do
     get :feed, :format =&gt; 'atom10', :type =&gt; 'article', :id =&gt; contents(:article1).id
     assert_moved_permanently_to contents(:article1).permalink_by_format('atom')
   end
 
-  def test_feed_atom10_category
+  it &quot;test_feed_atom10_category&quot; do
     get :feed, :format =&gt; 'atom10', :type =&gt; 'category', :id =&gt; 'personal'
     assert_moved_permanently_to(category_url('personal', :format =&gt; 'atom'))
   end
 
-  def test_feed_atom10_tag
+  it &quot;test_feed_atom10_tag&quot; do
     get :feed, :format =&gt; 'atom10', :type =&gt; 'tag', :id =&gt; 'foo'
     assert_moved_permanently_to(tag_url('foo',:format =&gt; 'atom'))
   end
 
-  def test_articlerss
+  it &quot;test_articlerss&quot; do
     get :articlerss, :id =&gt; contents(:article1).id
     assert_response :redirect
   end
 
-  def test_commentrss
+  it &quot;test_commentrss&quot; do
     get :commentrss, :id =&gt; 1
     assert_response :redirect
   end
 
-  def test_trackbackrss
+  it &quot;test_trackbackrss&quot; do
     get :trackbackrss, :id =&gt; 1
     assert_response :redirect
   end
 
-  def test_bad_format
+  it &quot;test_bad_format&quot; do
     get :feed, :format =&gt; 'atom04', :type =&gt; 'feed'
     assert_response :missing
   end
 
-  def test_bad_type
+  it &quot;test_bad_type&quot; do
     get :feed, :format =&gt; 'rss20', :type =&gt; 'foobar'
     assert_response :missing
   end
 
-  def test_rsd
+  it &quot;test_rsd&quot; do
     get :rsd, :id =&gt; 1
     assert_response :success
     assert_nothing_raised do
@@ -165,13 +165,13 @@ describe XmlController do
     end
   end
 
-  def test_atom03
+  it &quot;test_atom03&quot; do
     get :feed, :format =&gt; 'atom03', :type =&gt; 'feed'
     assert_response :moved_permanently
     assert_moved_permanently_to 'http://test.host/articles.atom'
   end
 
-  def test_itunes
+  it &quot;test_itunes&quot; do
     get :itunes
     assert_response :success
     assert_xml @response.body
@@ -179,7 +179,7 @@ describe XmlController do
   end
 
   # TODO(laird): make this more robust
-  def test_sitemap
+  it &quot;test_sitemap&quot; do
     get :feed, :format =&gt; 'googlesitemap', :type =&gt; 'sitemap'
 
     assert_response :success</diff>
      <filename>spec/controllers/xml_controller_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,18 +15,18 @@ describe &quot;CommentClosing from Test::Unit; no I don't know why it's in article_cl
     Blog.stub!(:default).and_return(@blog)
   end
 
-  def test_new_article_should_be_open_if_auto_close_is_zero
+  it &quot;test_new_article_should_be_open_if_auto_close_is_zero&quot; do
     art = an_article
     art.created_at = Time.now
     assert !art.comments_closed?
   end
 
-  def test_old_article_should_be_open_if_auto_close_is_zero
+  it &quot;test_old_article_should_be_open_if_auto_close_is_zero&quot; do
     art = an_article(:created_at =&gt; Time.now - 1000.days)
     assert !art.comments_closed?
   end
 
-  def test_new_article_should_be_open_if_auto_close_is_thirty
+  it &quot;test_new_article_should_be_open_if_auto_close_is_thirty&quot; do
     @blog.sp_article_auto_close = 30
     art = an_article
     assert !art.comments_closed?
@@ -34,7 +34,7 @@ describe &quot;CommentClosing from Test::Unit; no I don't know why it's in article_cl
     assert !art.comments_closed?
   end
 
-  def test_old_article_should_be_closed_if_auto_close_is_thirty
+  it &quot;test_old_article_should_be_closed_if_auto_close_is_thirty&quot; do
     @blog.sp_article_auto_close = 30
     art = an_article(:created_at =&gt; Time.now - 31.days)
     assert art.comments_closed?</diff>
      <filename>spec/models/article_closing_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,32 +30,32 @@ describe Article do
     end
   end
 
-  def test_content_fields
+  it &quot;test_content_fields&quot; do
     a = Article.new
     assert_equal [:body, :extended], a.content_fields
   end
 
-  def test_permalink_url
+  it &quot;test_permalink_url&quot; do
     assert_equal 'http://myblog.net/2004/06/01/article-3', contents(:article3).permalink_url(anchor=nil, only_path=true)
   end
 
-  def test_edit_url
+  it &quot;test_edit_url&quot; do
     a = contents(:article3)
     assert_equal &quot;http://myblog.net/admin/content/edit/#{a.id}&quot;, a.edit_url
   end
 
-  def test_delete_url
+  it &quot;test_delete_url&quot; do
     a = contents(:article3)
     assert_equal &quot;http://myblog.net/admin/content/destroy/#{a.id}&quot;, a.delete_url
   end
 
-  def test_feed_url
+  it &quot;test_feed_url&quot; do
     a = contents(:article3)
     assert_equal &quot;http://myblog.net/2004/06/01/article-3.atom&quot;, a.feed_url(:atom10)
     assert_equal &quot;http://myblog.net/2004/06/01/article-3.rss&quot;, a.feed_url(:rss20)
   end
 
-  def test_create
+  it &quot;test_create&quot; do
     a = Article.new
     a.user_id = 1
     a.body = &quot;Foo&quot;
@@ -69,7 +69,7 @@ describe Article do
     assert_equal 1, b.categories.size
   end
 
-  def test_permalink_with_title
+  it &quot;test_permalink_with_title&quot; do
     assert_equal( contents(:article3),
                   Article.find_by_permalink({:year =&gt; 2004, :month =&gt; 06, :day =&gt; 01, :title =&gt; &quot;article-3&quot;}) )
     assert_raises(ActiveRecord::RecordNotFound) do
@@ -77,7 +77,7 @@ describe Article do
     end
   end
 
-  def test_strip_title
+  it &quot;test_strip_title&quot; do
     assert_equal &quot;article-3&quot;, &quot;Article-3&quot;.to_url
     assert_equal &quot;article-3&quot;, &quot;Article 3!?#&quot;.to_url
     assert_equal &quot;there-is-sex-in-my-violence&quot;, &quot;There is Sex in my Violence!&quot;.to_url
@@ -86,13 +86,13 @@ describe Article do
     assert_equal &quot;my-cats-best-friend&quot;, &quot;My Cat's Best Friend&quot;.to_url
   end
 
-  def test_perma_title
+  it &quot;test_perma_title&quot; do
     assert_equal &quot;article-1&quot;, contents(:article1).stripped_title
     assert_equal &quot;article-2&quot;, contents(:article2).stripped_title
     assert_equal &quot;article-3&quot;, contents(:article3).stripped_title
   end
 
-  def test_html_title
+  it &quot;test_html_title&quot; do
     a = Article.new
     a.title = &quot;This &lt;i&gt;is&lt;/i&gt; a &lt;b&gt;test&lt;/b&gt;&quot;
     assert a.save
@@ -100,7 +100,7 @@ describe Article do
     assert_equal 'this-is-a-test', a.permalink
   end
 
-  def test_multibyte_title
+  it &quot;test_multibyte_title&quot; do
     a = Article.new
     a.title = &quot;&#12523;&#12499;&#12540;&quot;
     assert a.save
@@ -108,20 +108,20 @@ describe Article do
     assert_equal '%E3%83%AB%E3%83%93%E3%83%BC', a.permalink
   end
 
-  def test_urls
+  it &quot;test_urls&quot; do
     urls = contents(:article4).html_urls
     assert_equal [&quot;http://www.example.com/public&quot;], urls
   end
 
   ### XXX: Should we have a test here?
-  def test_send_pings
+  it &quot;test_send_pings&quot; do
   end
 
   ### XXX: Should we have a test here?
-  def test_send_multiple_pings
+  it &quot;test_send_multiple_pings&quot; do
   end
 
-  def test_tags
+  it &quot;test_tags&quot; do
     a = Article.new(:title =&gt; 'Test tag article',
                     :keywords =&gt; 'test tag tag stuff');
 
@@ -163,14 +163,14 @@ describe Article do
     assert_equal ['test', 'tagtest', 'web2-0'].sort, c.tags.collect(&amp;:name).sort
   end
 
-  def test_find_published_by_tag_name
+  it &quot;test_find_published_by_tag_name&quot; do
     @articles = Tag.find_by_name(tags(:foo).name).published_articles
 
     assert_results_are(:article1, :article2, :publisher_article)
   end
 
 
-  def test_find_published
+  it &quot;test_find_published&quot; do
     @articles = Article.find_published
     assert_results_are(:search_target, :article1, :article2,
                        :article3, :inactive_article,:xmltest,
@@ -181,7 +181,7 @@ describe Article do
     assert_results_are :article1
   end
 
-  def test_just_published_flag
+  it &quot;test_just_published_flag&quot; do
     art = Article.new(:title =&gt; 'title',
                                    :body =&gt; 'body',
                                    :published =&gt; true)
@@ -198,18 +198,18 @@ describe Article do
     assert ! art.just_changed_published_status?
   end
 
-  def test_future_publishing
+  it &quot;test_future_publishing&quot; do
     assert_sets_trigger(Article.create!(:title =&gt; 'title', :body =&gt; 'body',
                                         :published =&gt; true,
                                         :published_at =&gt; Time.now + 4.seconds))
   end
 
-  def test_future_publishing_without_published_flag
+  it &quot;test_future_publishing_without_published_flag&quot; do
     assert_sets_trigger Article.create!(:title =&gt; 'title', :body =&gt; 'body',
                                         :published_at =&gt; Time.now + 4.seconds)
   end
 
-  def test_triggers_are_dependent
+  it &quot;test_triggers_are_dependent&quot; do
     art = Article.create!(:title =&gt; 'title', :body =&gt; 'body',
                           :published_at =&gt; Time.now + 1.hour)
     assert_equal 1, Trigger.count
@@ -230,7 +230,7 @@ describe Article do
     assert art.published
   end
 
-  def test_find_published_by_category
+  it &quot;test_find_published_by_category&quot; do
     Article.create!(:title      =&gt; &quot;News from the future!&quot;,
                     :body       =&gt; &quot;The future is cool!&quot;,
                     :keywords   =&gt; &quot;future&quot;,
@@ -243,13 +243,13 @@ describe Article do
     assert_results_are :article1
   end
 
-  def test_find_published_by_nonexistent_category_raises_exception
+  it &quot;test_find_published_by_nonexistent_category_raises_exception&quot; do
     assert_raises ActiveRecord::RecordNotFound do
       Category.find_by_permalink('does-not-exist').published_articles
     end
   end
 
-  def test_destroy_file_upload_associations
+  it &quot;test_destroy_file_upload_associations&quot; do
     a = contents(:article1)
     assert_equal 2, a.resources.size
     a.resources &lt;&lt; resources(:resource3)
@@ -266,13 +266,13 @@ describe Article do
     assert_equal ['bob', 'randomuser'], a.notify_users.collect {|u| u.login }.sort
   end
 
-  def test_tags_on_update
+  it &quot;test_tags_on_update&quot; do
     contents(:article3).update_attribute :keywords, &quot;my new tags&quot;
     assert_equal 3, contents(:article3).reload.tags.size
     assert contents(:article3).tags.include?(Tag.find_by_name(&quot;new&quot;))
   end
 
-  def test_withdrawal
+  it &quot;test_withdrawal&quot; do
     art = Article.find(contents(:article1).id)
     assert   art.published?
     assert ! art.withdrawn?
@@ -284,7 +284,7 @@ describe Article do
     assert   art.withdrawn?
   end
 
-  def test_default_filter
+  it &quot;test_default_filter&quot; do
     a = Article.find(contents(:article1).id)
     assert_equal 'textile', a.default_text_filter.name
   end
@@ -405,14 +405,14 @@ describe Article do
     end
   end
 
-  def test_can_ping_fresh_article_iff_it_allows_pings
+  it &quot;test_can_ping_fresh_article_iff_it_allows_pings&quot; do
     a = Article.find(contents(:article1).id)
     assert_equal(false, a.pings_closed?)
     a.allow_pings = false
     assert_equal(true, a.pings_closed?)
   end
 
-  def test_cannot_ping_old_article
+  it &quot;test_cannot_ping_old_article&quot; do
     a = Article.find(contents(:article3).id)
     assert_equal(true, a.pings_closed?)
     a.allow_pings = false</diff>
      <filename>spec/models/article_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ describe BlacklistPattern, 'from Test::Unit' do
   end
 
   # Replace this with your real tests.
-  def test_truth
+  it &quot;test_truth&quot; do
     assert_kind_of BlacklistPattern,  @blacklist_pattern
   end
 end</diff>
      <filename>spec/models/blacklist_pattern_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ describe 'FeedbackStates from Test::Unit' do
                                                   :body =&gt; 'Body')
   end
 
-  def test_ham_all_the_way
+  it &quot;test_ham_all_the_way&quot; do
     assert @comment.unclassified?
     assert   @comment.published?
     assert   @comment.just_published?
@@ -23,7 +23,7 @@ describe 'FeedbackStates from Test::Unit' do
     assert ! @comment.just_changed_published_status?
   end
 
-  def test_spam_all_the_way
+  it &quot;test_spam_all_the_way&quot; do
     class &lt;&lt; @comment
       def classify
         :spam
@@ -46,7 +46,7 @@ describe 'FeedbackStates from Test::Unit' do
     assert ! @comment.just_changed_published_status?
   end
 
-  def test_presumed_spam_marked_as_ham
+  it &quot;test_presumed_spam_marked_as_ham&quot; do
     @comment[:state] = 'presumed_spam'
     @comment.mark_as_ham
     assert @comment.published?
@@ -54,7 +54,7 @@ describe 'FeedbackStates from Test::Unit' do
     assert @comment.just_changed_published_status?
   end
 
-  def test_presumed_ham_marked_as_spam
+  it &quot;test_presumed_ham_marked_as_spam&quot; do
     @comment[:state] = 'presumed_ham'
     @comment.mark_as_spam
     assert ! @comment.published?</diff>
      <filename>spec/models/content_state/feedback_states_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
 require File.dirname(__FILE__) + &quot;/../spec_helper&quot;
 
-class NotificationTest &lt; Test::Unit::TestCase
+describe Notification do
   # Replace this with your real tests.
-  def test_truth
+  it &quot;test_truth&quot; do
     assert true
   end
 end</diff>
      <filename>spec/models/notification_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@ describe 'Ping::Pinger with Test::Unit' do
     end
   end
 
-  def test_pingback_url_nil
+  it &quot;test_pingback_url_nil&quot; do
     @pinger.response = mock('response')
     @pinger.response.stub!(:body).and_return('')
     @pinger.response.stub!(:[]).and_return(nil)
@@ -17,14 +17,14 @@ describe 'Ping::Pinger with Test::Unit' do
   end
 
   # TODO: why do we assume that we can XML attribute order?
-  def test_pingback_url_from_body
+  it &quot;test_pingback_url_from_body&quot; do
     @pinger.response = mock('response')
     @pinger.response.stub!(:body).and_return('&lt;link rel=&quot;pingback&quot; href=&quot;foo&quot; /&gt;')
     @pinger.response.stub!(:[]).and_return(nil)
     assert_equal 'foo', @pinger.pingback_url
   end
 
-  def test_pingback_url
+  it &quot;test_pingback_url&quot; do
     @pinger.response = mock('response')
     @pinger.response.stub!(:body).and_return('')
     @pinger.response.stub!(:[]).and_return(:x_pingback)</diff>
      <filename>spec/models/ping_pinger_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,8 @@
 require File.dirname(__FILE__) + &quot;/../spec_helper&quot;
 
-class RouteCacheTest &lt; Test::Unit::TestCase
+describe RouteCache do
 
-  def test_cache_clear
+  it &quot;test_cache_clear&quot; do
     RouteCache[:foo] = :bar
     RouteCache.clear
     assert_equal({}, RouteCache.instance_variable_get(:@cache))</diff>
      <filename>spec/models/route_cache_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 require File.dirname(__FILE__) + &quot;/../spec_helper&quot;
 
-class SidebarTest &lt; Test::Unit::TestCase
-  def test_available_sidebars
+describe Sidebar do
+  it &quot;test_available_sidebars&quot; do
     assert Sidebar.available_sidebars.size &gt;= 6
   end
 end</diff>
      <filename>spec/models/sidebar_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>348b596680d5d7c94d3eb3e07abdaf26a0ec888d</id>
    </parent>
  </parents>
  <author>
    <name>Matijs van Zuijlen</name>
    <email>matijs@matijs.net</email>
  </author>
  <url>http://github.com/fdv/typo/commit/a9e94c82412d01cffcc8959e81b2ee51fd1f43fa</url>
  <id>a9e94c82412d01cffcc8959e81b2ee51fd1f43fa</id>
  <committed-date>2009-10-25T06:00:42-07:00</committed-date>
  <authored-date>2009-10-25T06:00:42-07:00</authored-date>
  <message>Replace all Test::Unit style tests with RSpec style specs, since RSpec's
handling of these tests proved unreliable: In particular, a test would fail
when the full suite was run, but pass when only the single spec file was
run.</message>
  <tree>caf09c3e2e03f2e7c5e0d5b30b7510fe95d4e029</tree>
  <committer>
    <name>Matijs van Zuijlen</name>
    <email>matijs@matijs.net</email>
  </committer>
</commit>
