<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,28 @@
 require 'rake'
 require 'rake/rdoctask'
- 
+
+begin
+  require 'spec/rake/spectask'
+rescue LoadError
+  puts &lt;&lt;-EOS
+To use rspec for testing you must install the rspec gem:
+    gem install rspec
+EOS
+  exit(0)
+end
+
+desc &quot;Run all specs&quot;
+Spec::Rake::SpecTask.new(:spec) do |t|
+  t.spec_opts = ['-cfs']
+  t.spec_files = FileList['test/**/*_spec.rb']
+end
+
+desc &quot;Print SpecDocs&quot;
+Spec::Rake::SpecTask.new(:doc) do |t|
+  t.spec_opts = [&quot;--format&quot;, &quot;specdoc&quot;]
+  t.spec_files = FileList['test/*_spec.rb']
+end
+
 desc &quot;Generate RDoc documentation&quot;
 Rake::RDocTask.new(:rdoc) do |rdoc|
   rdoc.options &lt;&lt; '--line-numbers' &lt;&lt; '--inline-source' &lt;&lt;
@@ -14,4 +36,5 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
   end
 end
 
-
+desc &quot;Run the rspec&quot;
+task :default =&gt; :spec</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -5,9 +5,8 @@ require 'pp'
 
 describe Shinmun::Blog do
 
-  TEST_DIR = File.expand_path(File.dirname(__FILE__))
-  TEMPLATES_DIR = File.expand_path(TEST_DIR + '/templates')
-  REPO = TEST_DIR + '/repo'
+  TEMPLATES_DIR = File.expand_path(File.dirname(__FILE__) + '/templates')
+  REPO = '/tmp/shinmun-test'
 
   before do
     FileUtils.rm_rf REPO</diff>
      <filename>test/blog_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,11 +17,11 @@ nodes.
 END
 
   it 'should parse and dump in the same way' do
-    Shinmun::Post.new(:type =&gt; 'md').parse(POST).dump.should == (POST)
+    Shinmun::Post.new(:type =&gt; 'md', :src =&gt; POST).dump.should == (POST)
   end
 
   it &quot;should parse the yaml header&quot; do
-    post = Shinmun::Post.new(:type =&gt; 'md').parse(POST)
+    post = Shinmun::Post.new(:type =&gt; 'md', :src =&gt; POST)
     post.title.should == 'Patroon - a Javascript Template Engine'
     post.category.should == 'Javascript'
     post.date.should == Date.new(2008,9,9)</diff>
      <filename>test/post_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1c0b399ac9b92ab3777931af735227fe4022b811</id>
    </parent>
  </parents>
  <author>
    <name>Matthias Georgi</name>
    <email>matti.georgi@gmail.com</email>
  </author>
  <url>http://github.com/georgi/shinmun/commit/3b5e1e24715c2f1be21cd6be599409ddf1976075</url>
  <id>3b5e1e24715c2f1be21cd6be599409ddf1976075</id>
  <committed-date>2009-04-13T04:22:25-07:00</committed-date>
  <authored-date>2009-04-13T04:22:25-07:00</authored-date>
  <message>added rspec tasks. fixed specs.</message>
  <tree>7f9f421fafefe0b5d85fa0250d43ba0976549376</tree>
  <committer>
    <name>Matthias Georgi</name>
    <email>matti.georgi@gmail.com</email>
  </committer>
</commit>
