public
Rubygem
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/technicalpickles/shoulda.git
Fixed shoulda:list rake task for Rails 2.1 by adding the 'test' directory 
to the load path
rmm5t (author)
Mon Aug 18 20:37:13 -0700 2008
commit  2f510684f2aaf754b263e2e071944b8f003184ce
tree    49ccfa20a89807402ee20d9ec112133fba9873a0
parent  f517592c45af8156b287bdecca81d02c2e33c383
...
1
2
3
 
4
5
6
...
13
14
15
16
 
17
18
19
...
1
2
3
4
5
6
7
...
14
15
16
 
17
18
19
20
0
@@ -1,6 +1,7 @@
0
 namespace :shoulda do
0
   desc "List the names of the test methods in a specification like format"
0
   task :list do
0
+ $LOAD_PATH.unshift("test")
0
 
0
     require 'test/unit'
0
     require 'rubygems'
0
@@ -13,7 +14,7 @@ namespace :shoulda do
0
     test_files.each do |file|
0
       load file
0
       klass = File.basename(file, '.rb').classify.constantize
0
-
0
+
0
       puts klass.name.gsub('Test', '')
0
 
0
       test_methods = klass.instance_methods.grep(/^test/).map {|s| s.gsub(/^test: /, '')}.sort

Comments

    No one has commented yet.