Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed functional tests from scripts.

  • Loading branch information...
commit 86eb0d410888cc6f000a5097feb0177c947bcfe8 1 parent 8209f18
@jakewendt jakewendt authored
View
22 lib/calnet_authenticated/autotest.rb
@@ -10,11 +10,17 @@ def run_with_calnet_authenticated
self.extra_files << File.expand_path(File.join(
File.dirname(__FILE__),'/../../test/unit/calnet/'))
- self.extra_files << File.expand_path(File.join(
- File.dirname(__FILE__),'/../../test/functional/calnet/'))
+# self.extra_files << File.expand_path(File.join(
+# File.dirname(__FILE__),'/../../test/functional/calnet/'))
+
+# add_mapping(
+# %r{^#{File.expand_path(File.join(File.dirname(__FILE__),'/../../test/'))}/(unit|functional)/calnet/.*_test\.rb$}
+# ) do |filename, _|
+# filename
+# end
add_mapping(
- %r{^#{File.expand_path(File.join(File.dirname(__FILE__),'/../../test/'))}/(unit|functional)/calnet/.*_test\.rb$}
+ %r{^#{File.expand_path(File.join(File.dirname(__FILE__),'/../../test/'))}/unit/calnet/.*_test\.rb$}
) do |filename, _|
filename
end
@@ -35,11 +41,11 @@ def run_with_calnet_authenticated
self.extra_class_map[$1.camelcase] = File.expand_path(f)
end
end
- Dir[File.join(File.dirname(__FILE__),'/../../test/functional/**/*rb')].each do |f|
- if f =~ /test\/functional\/(calnet\/.*)\.rb/
- self.extra_class_map[$1.camelcase] = File.expand_path(f)
- end
- end
+# Dir[File.join(File.dirname(__FILE__),'/../../test/functional/**/*rb')].each do |f|
+# if f =~ /test\/functional\/(calnet\/.*)\.rb/
+# self.extra_class_map[$1.camelcase] = File.expand_path(f)
+# end
+# end
run_without_calnet_authenticated
end
View
20 lib/calnet_authenticated/test_tasks.rb
@@ -10,17 +10,17 @@ module CalnetAuthenticated;end
t.verbose = true
end
end
- namespace :functionals do
- Rake::TestTask.new(:calnet_authenticated => "db:test:prepare") do |t|
- t.pattern = File.expand_path(File.join(
- File.dirname(__FILE__),'/../../test/functional/calnet/*_test.rb'))
- t.libs << "test"
- t.verbose = true
- end
- end
+# namespace :functionals do
+# Rake::TestTask.new(:calnet_authenticated => "db:test:prepare") do |t|
+# t.pattern = File.expand_path(File.join(
+# File.dirname(__FILE__),'/../../test/functional/calnet/*_test.rb'))
+# t.libs << "test"
+# t.verbose = true
+# end
+# end
end
-Rake::Task['test:functionals'].prerequisites.unshift(
- "test:functionals:calnet_authenticated" )
+#Rake::Task['test:functionals'].prerequisites.unshift(
+# "test:functionals:calnet_authenticated" )
Rake::Task['test:units'].prerequisites.unshift(
"test:units:calnet_authenticated" )

0 comments on commit 86eb0d4

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