<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,17 +1,32 @@
-task :default =&gt; [:test]
+
+require File.expand_path(File.dirname(__FILE__)) + '/init.rb'
+task :default =&gt; [:spec]
 
 require 'rake/testtask'
+require 'spec/rake/spectask'
+
+namespace :spec do
+  desc &quot;Run all specs in spec directory with RCov (excluding plugin specs)&quot;
+  Spec::Rake::SpecTask.new(:rcov) do |t| 
+    t.spec_opts = ['--options', &quot;\&quot;#{RSOUND_ROOT}/spec/spec.opts\&quot;&quot;]
+    t.spec_files = FileList['spec/**/*_spec.rb']
+    t.rcov = true
+    t.rcov_opts = lambda do
+      IO.readlines(&quot;#{RSOUND_ROOT}/spec/rcov.opts&quot;).map {|l| l.chomp.split &quot; &quot;}.flatten
+    end 
+  end 
 
-# TODO: make this standard way of running rake tasks work. Currently it's failing...
-# Rake::TestTask.new do |t|
-#   t.test_files = FileList['test/unittests/*.rb']
-#   t.verbose = true
-# end
+  desc &quot;Print Specdoc for all specs (excluding plugin specs)&quot;
+  Spec::Rake::SpecTask.new(:doc) do |t| 
+    t.spec_opts = [&quot;--format&quot;, &quot;specdoc&quot;, &quot;--dry-run&quot;]
+    t.spec_files = FileList['spec/**/*_spec.rb']
+  end 
 
-task :test do
-  base_path = &quot;test/unittests/&quot;  
-  Dir.foreach(base_path) do |f|
-    this_file = base_path + f
-    ruby this_file unless File.directory?(this_file) || [&quot;test_helper.rb&quot;].include?(f)
+  [:units].each do |sub|
+    desc &quot;Run the code examples in spec/#{sub}&quot;
+    Spec::Rake::SpecTask.new(sub) do |t|
+      t.spec_opts = ['--options', &quot;\&quot;#{RSOUND_ROOT}/spec/spec.opts\&quot;&quot;]
+      t.spec_files = FileList[&quot;spec/#{sub}/**/*_spec.rb&quot;]
+    end
   end
 end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 # define paths
 RSOUND_ROOT = File.expand_path(File.dirname(__FILE__))
 RSOUND_BIN = RSOUND_ROOT + &quot;/bin&quot;
-
+require 'rubygems'
 # require all the files in the bin directory
 Dir.foreach(RSOUND_BIN) {|f| require RSOUND_BIN + &quot;/&quot; + f unless [&quot;.&quot;,&quot;..&quot;].include?(f)}</diff>
      <filename>init.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e2659b568049cb2336008db834e486471c457c17</id>
    </parent>
  </parents>
  <author>
    <name>Noah Thorp</name>
    <email>noahthorp@rix-8.local</email>
  </author>
  <url>http://github.com/aquabu/rsound/commit/a19c72330b4cfe69900990a5245f26e2f2a12a5e</url>
  <id>a19c72330b4cfe69900990a5245f26e2f2a12a5e</id>
  <committed-date>2008-12-13T08:09:29-08:00</committed-date>
  <authored-date>2008-12-13T08:09:29-08:00</authored-date>
  <message>Added rspec rake task.</message>
  <tree>33942feeae2ac55e027ae0287b576f5c4887cef8</tree>
  <committer>
    <name>Noah Thorp</name>
    <email>noahthorp@rix-8.local</email>
  </committer>
</commit>
