Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed functional tests from scripts.

  • Loading branch information...
commit 86eb0d410888cc6f000a5097feb0177c947bcfe8 1 parent 8209f18
Jake jakewendt authored
22 lib/calnet_authenticated/autotest.rb
@@ -10,11 +10,17 @@ def run_with_calnet_authenticated
10 10 self.extra_files << File.expand_path(File.join(
11 11 File.dirname(__FILE__),'/../../test/unit/calnet/'))
12 12
13   - self.extra_files << File.expand_path(File.join(
14   - File.dirname(__FILE__),'/../../test/functional/calnet/'))
  13 +# self.extra_files << File.expand_path(File.join(
  14 +# File.dirname(__FILE__),'/../../test/functional/calnet/'))
  15 +
  16 +# add_mapping(
  17 +# %r{^#{File.expand_path(File.join(File.dirname(__FILE__),'/../../test/'))}/(unit|functional)/calnet/.*_test\.rb$}
  18 +# ) do |filename, _|
  19 +# filename
  20 +# end
15 21
16 22 add_mapping(
17   - %r{^#{File.expand_path(File.join(File.dirname(__FILE__),'/../../test/'))}/(unit|functional)/calnet/.*_test\.rb$}
  23 + %r{^#{File.expand_path(File.join(File.dirname(__FILE__),'/../../test/'))}/unit/calnet/.*_test\.rb$}
18 24 ) do |filename, _|
19 25 filename
20 26 end
@@ -35,11 +41,11 @@ def run_with_calnet_authenticated
35 41 self.extra_class_map[$1.camelcase] = File.expand_path(f)
36 42 end
37 43 end
38   - Dir[File.join(File.dirname(__FILE__),'/../../test/functional/**/*rb')].each do |f|
39   - if f =~ /test\/functional\/(calnet\/.*)\.rb/
40   - self.extra_class_map[$1.camelcase] = File.expand_path(f)
41   - end
42   - end
  44 +# Dir[File.join(File.dirname(__FILE__),'/../../test/functional/**/*rb')].each do |f|
  45 +# if f =~ /test\/functional\/(calnet\/.*)\.rb/
  46 +# self.extra_class_map[$1.camelcase] = File.expand_path(f)
  47 +# end
  48 +# end
43 49
44 50 run_without_calnet_authenticated
45 51 end
20 lib/calnet_authenticated/test_tasks.rb
@@ -10,17 +10,17 @@ module CalnetAuthenticated;end
10 10 t.verbose = true
11 11 end
12 12 end
13   - namespace :functionals do
14   - Rake::TestTask.new(:calnet_authenticated => "db:test:prepare") do |t|
15   - t.pattern = File.expand_path(File.join(
16   - File.dirname(__FILE__),'/../../test/functional/calnet/*_test.rb'))
17   - t.libs << "test"
18   - t.verbose = true
19   - end
20   - end
  13 +# namespace :functionals do
  14 +# Rake::TestTask.new(:calnet_authenticated => "db:test:prepare") do |t|
  15 +# t.pattern = File.expand_path(File.join(
  16 +# File.dirname(__FILE__),'/../../test/functional/calnet/*_test.rb'))
  17 +# t.libs << "test"
  18 +# t.verbose = true
  19 +# end
  20 +# end
21 21 end
22   -Rake::Task['test:functionals'].prerequisites.unshift(
23   - "test:functionals:calnet_authenticated" )
  22 +#Rake::Task['test:functionals'].prerequisites.unshift(
  23 +# "test:functionals:calnet_authenticated" )
24 24 Rake::Task['test:units'].prerequisites.unshift(
25 25 "test:units:calnet_authenticated" )
26 26

0 comments on commit 86eb0d4

Please sign in to comment.
Something went wrong with that request. Please try again.