Permalink
Browse files

move tests around, so that we can load them up separately in the Rake…

…file
  • Loading branch information...
1 parent 30e6560 commit c5cb0f940377f8ef5e67fdb9ad96d8cde60ce881 @jamesgolick jamesgolick committed Jan 16, 2009
Showing with 19 additions and 6 deletions.
  1. +15 −3 Rakefile
  2. +1 −1 test/{ → context}/context_test.rb
  3. +2 −1 test/{ → else}/matchy_test.rb
  4. +1 −1 test/{ → shoulda}/shoulda_test.rb
View
@@ -21,9 +21,21 @@ rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
-Rake::TestTask.new do |t|
+Rake::TestTask.new(:context) do |t|
t.libs << 'lib'
- t.pattern = 'test/**/*_test.rb'
+ t.pattern = 'test/context/**/*_test.rb'
+ t.verbose = false
+end
+
+Rake::TestTask.new(:shoulda) do |t|
+ t.libs << 'lib'
+ t.pattern = 'test/shoulda/**/*_test.rb'
+ t.verbose = false
+end
+
+Rake::TestTask.new(:else) do |t|
+ t.libs << 'lib'
+ t.pattern = 'test/else/**/*_test.rb'
t.verbose = false
end
@@ -35,4 +47,4 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('lib/**/*.rb')
end
-task :default => :test
+task :default => [:context, :shoulda, :else]
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.dirname(__FILE__) + '/../test_helper'
require 'context'
class ContextTest < Test::Unit::TestCase
@@ -1,4 +1,5 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.dirname(__FILE__) + '/../test_helper'
+require 'context'
class MatchyTest < Test::Unit::TestCase
it "should alias should to .to" do
@@ -1,4 +1,4 @@
-require File.dirname(__FILE__) + '/test_helper'
+require File.dirname(__FILE__) + '/../test_helper'
require 'shoulda'
class ShouldaTest < Test::Unit::TestCase

0 comments on commit c5cb0f9

Please sign in to comment.