<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -17,7 +17,6 @@ class BlikiTest &lt; Test::Unit::TestCase
     Stone.start(Dir.pwd + &quot;/db/#{Sinatra.env.to_s}&quot;, Dir.glob(File.join(Dir.pwd,&quot;models/*&quot;)))
     # create one post
     p = Post.new(:title =&gt; &quot;First post&quot;, :body =&gt; &quot;This is a sample post&quot;, :tags =&gt; &quot;test&quot;)
-    p.save
   end
   def teardown
     # clear mock content
@@ -52,7 +51,6 @@ class BlikiTest &lt; Test::Unit::TestCase
   # Mock content: Posts
   test &quot;Post creation works under the hood&quot; do
     first_post = Post.new(:title =&gt; &quot;First post&quot;, :body =&gt; &quot;Wadus wadus&quot;, :tags =&gt; &quot;foo, bar&quot;)
-    first_post.save
     get_it &quot;/post/first-post&quot;
     assert_equal 200, status
     get_it &quot;/tag/foo&quot;
@@ -72,7 +70,6 @@ class BlikiTest &lt; Test::Unit::TestCase
   # Mock content: Pages
   test &quot;Page creation works under the hood&quot; do
     first_page = Page.new(:title =&gt; &quot;First page&quot;, :body =&gt; &quot;Wadus wadus&quot;, :tags =&gt; &quot;foo, bar&quot;)
-    first_page.save
     get_it &quot;/first-page&quot;
     assert_equal 200, status
     get_it &quot;/tag/foo&quot;
@@ -96,7 +93,6 @@ class BlikiTest &lt; Test::Unit::TestCase
     first_post = Post[1]
     assert_equal 1, first_post.id
     new_post = Post.new(:title =&gt; &quot;Third post&quot;, :body =&gt; &quot;Third post&quot;, :tags =&gt; &quot;third&quot;)
-    new_post.save
     all_posts_end = Post.all.size
     assert_equal all_posts_end, all_posts_start + 1
   end
@@ -104,7 +100,6 @@ class BlikiTest &lt; Test::Unit::TestCase
     post_count = Post.all.size
     (1..200-post_count).each do |i|
       tmp_post = Post.new(:title =&gt; &quot;Post #{i}&quot;, :body =&gt; &quot;Body #{i}&quot;, :tags =&gt; &quot;tag#{i}&quot; )
-      tmp_post.save
     end
     all_posts = Post.all
     assert_equal(200, all_posts.size)
@@ -112,7 +107,6 @@ class BlikiTest &lt; Test::Unit::TestCase
     assert_equal(Post[200], all_posts.last)
     (1..100).each do |i|
       tmp_post = Post.new(:title =&gt; &quot;Post #{i}&quot;, :body =&gt; &quot;Body #{i}&quot;, :tags =&gt; &quot;tag#{i}&quot; )
-      tmp_post.save
     end
     all_posts = Post.all
     assert_equal(300, all_posts.size)
@@ -154,14 +148,12 @@ class BlikiTest &lt; Test::Unit::TestCase
   # Content
   test &quot;wikilinks are converted to links&quot; do
     new_page = Page.new(:title =&gt; &quot;test_page&quot;, :body =&gt; &quot;[[wikilink1]] [[wikilink2]]&quot;, :tags =&gt; &quot;wiki&quot;)
-    new_page.save
     get_it &quot;/test_page&quot;
     assert body.scan(&quot;&lt;a href=\&quot;#{Sinatra.options.base_url}/wikilink1\&quot;&gt;wikilink1&lt;/a&gt;&quot;).size &gt; 0
     assert body.scan(&quot;&lt;a href=\&quot;#{Sinatra.options.base_url}/wikilink2\&quot;&gt;wikilink2&lt;/a&gt;&quot;).size &gt; 0
   end
   test &quot;WikiWords are converted to links&quot; do
     new_page = Page.new(:title =&gt; &quot;test_wikiwords&quot;, :body =&gt; &quot;WikiWord WikiWikiWord&quot;, :tags =&gt; &quot;wiki&quot;)
-    new_page.save
     get_it &quot;/test_wikiwords&quot;
     assert body.scan(&quot;&lt;a href=\&quot;#{Sinatra.options.base_url}/wikiword\&quot;&gt;WikiWord&lt;/a&gt;&quot;).size &gt; 0
     assert body.scan(&quot;&lt;a href=\&quot;#{Sinatra.options.base_url}/wikiwikiword\&quot;&gt;WikiWikiWord&lt;/a&gt;&quot;).size &gt; 0
@@ -176,11 +168,8 @@ class BlikiTest &lt; Test::Unit::TestCase
   # Attachments
   test &quot;attachment relationships work at model level&quot; do
     post_with_attach = Post.new(:title =&gt; &quot;Post with attach&quot;, :body =&gt; &quot;this post has an attach&quot;, :tags =&gt; &quot;attach&quot;)
-    post_with_attach.save
     a = Attachment.new(:name =&gt; &quot;foo&quot;, :path =&gt; Sinatra.options.public, :content =&gt; File.open(&quot;README.markdown&quot;).read, :post_id =&gt; post_with_attach.id)
-    a.save
     b = Attachment.new(:name =&gt; &quot;bar&quot;, :path =&gt; Sinatra.options.public, :content =&gt; File.open(&quot;README.markdown&quot;).read, :post_id =&gt; post_with_attach.id)
-    b.save
     assert_equal 2, post_with_attach.attachments.size
   end
   test &quot;Attachments are created with unique names&quot; do
@@ -196,7 +185,6 @@ class BlikiTest &lt; Test::Unit::TestCase
   end
   test &quot;Content for attachments is saved correctly&quot; do
     a = Attachment.new(:name =&gt; &quot;attach_content&quot;, :path =&gt; Sinatra.options.public, :content =&gt; File.open(&quot;README.markdown&quot;).read)
-    a.save
     assert File.open(a.path / a.name,&quot;r&quot;).read.scan(&quot;bliki&quot;).size &gt; 1
   end
 </diff>
      <filename>test/test_bliki.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,6 +9,7 @@ class BlikiPluginsTest &lt; Test::Unit::TestCase
   test &quot;WikiWords plugin does not break code blocks&quot; do
     new_page = Page.new(:title =&gt; &quot;wikiword test two&quot;, :body =&gt; &quot;WikiWord\n    f = FooBar.new&quot;, :tags =&gt; &quot;wiki&quot;)
     get_it '/wikiword-test-two'
+    assert_match(/&lt;a href=\&quot;(.+)\&quot;&gt;WikiWord&lt;\/a&gt;/, body)
     assert_no_match(/&lt;a href=\&quot;(.+)\&quot;&gt;FooBar&lt;\/a&gt;/, body)
   end
 end
\ No newline at end of file</diff>
      <filename>test/test_plugins.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5347da279fca86d0b995d4d8cd4c22fa9f4d6926</id>
    </parent>
  </parents>
  <author>
    <name>Ale Mun&#771;oz</name>
    <email>bomberstudios@gmail.com</email>
  </author>
  <url>http://github.com/bomberstudios/bliki/commit/a9c53936102685e8f45592293e9f6465a858239b</url>
  <id>a9c53936102685e8f45592293e9f6465a858239b</id>
  <committed-date>2008-12-25T11:37:17-08:00</committed-date>
  <authored-date>2008-12-25T11:37:17-08:00</authored-date>
  <message>Improved tests</message>
  <tree>6428a65d5100fb7b1675d1ead05163a409a8003b</tree>
  <committer>
    <name>Ale Mun&#771;oz</name>
    <email>bomberstudios@gmail.com</email>
  </committer>
</commit>
