public
Fork of relevance/tarantula
Description: a big hairy fuzzy spider that crawls your site, wreaking havoc
Homepage: http://opensource.thinkrelevance.com/wiki/tarantula
Clone URL: git://github.com/thechrisoshow/tarantula.git
adding setup task
abedra (author)
Tue May 27 11:33:04 -0700 2008
commit  058802cbfe6bd9476e1c6048450cd854e75330ac
tree    ebf4a360b87eca25a8bb8179e75584bc6734c119
parent  201d69558b11ab282f490a2c89490c862542c019
...
2
3
4
5
 
6
7
8
9
10
11
 
12
13
14
...
16
17
18
19
 
20
21
22
23
24
25
26
27
 
 
 
 
 
 
 
...
2
3
4
 
5
6
7
8
9
10
 
11
12
13
14
...
16
17
18
 
19
20
21
22
23
24
 
 
25
26
27
28
29
30
31
32
0
@@ -2,13 +2,13 @@ namespace :tarantula do
0
 
0
   desc 'Run tarantula tests and (Mac only) open results in your browser.'
0
   task :test do
0
- rm_rf "tmp/tarantula"
0
+ rm_rf "tmp/tarantula"
0
     task = Rake::TestTask.new(:tarantula_test) do |t|
0
       t.libs << 'test'
0
       t.pattern = 'test/tarantula/**/*_test.rb'
0
       t.verbose = true
0
     end
0
-
0
+
0
     begin
0
       Rake::Task[:tarantula_test].invoke
0
     rescue RuntimeError => e
0
@@ -16,11 +16,16 @@ namespace :tarantula do
0
     end
0
     Dir.glob("tmp/tarantula/**/index.html") do |file|
0
       if PLATFORM['darwin']
0
- system("open #{file}")
0
+ system("open #{file}")
0
       else
0
         puts "You can view tarantula results at #{file}"
0
       end
0
     end
0
   end
0
-
0
-end
0
\ No newline at end of file
0
+
0
+ desc 'Generate a default tarantula test'
0
+ task :setup do
0
+ mkdir_p "test/tarantula"
0
+ cp "#{RAILS_ROOT}/vendor/plugins/tarantula/template/tarantula_test.rb", "test/tarantula/"
0
+ end
0
+end

Comments

    No one has commented yet.