Commit dcb88edd3992712babc8417c10f389ba22a1a691
1 parent
0ac2e8ca
Exists in
master
and in
29 other branches
Put plugin tests to run
Showing
19 changed files
with
21 additions
and
21 deletions
Show diff stats
lib/noosfero/plugin.rb
... | ... | @@ -12,8 +12,8 @@ class Noosfero::Plugin |
12 | 12 | File.directory?(entry) |
13 | 13 | end.each do |dir| |
14 | 14 | Rails.configuration.controller_paths << File.join(dir, 'controllers') |
15 | - Dependencies.load_paths << File.join(dir, 'controllers') | |
16 | - [ Dependencies.load_paths, $:].each do |path| | |
15 | + ActiveSupport::Dependencies.load_paths << File.join(dir, 'controllers') | |
16 | + [ ActiveSupport::Dependencies.load_paths, $:].each do |path| | |
17 | 17 | path << File.join(dir, 'models') |
18 | 18 | path << File.join(dir, 'lib') |
19 | 19 | end | ... | ... |
plugins/bsc/test/functional/bsc_plugin_environment_controller_test.rb
... | ... | @@ -5,7 +5,7 @@ require File.dirname(__FILE__) + '/../../../../app/models/uploaded_file' |
5 | 5 | # Re-raise errors caught by the controller. |
6 | 6 | class BscPluginEnvironmentController; def rescue_action(e) raise e end; end |
7 | 7 | |
8 | -class BscPluginEnvironmentControllerTest < Test::Unit::TestCase | |
8 | +class BscPluginEnvironmentControllerTest < ActiveSupport::TestCase | |
9 | 9 | |
10 | 10 | VALID_CNPJ = '94.132.024/0001-48' |
11 | 11 | ... | ... |
plugins/bsc/test/functional/bsc_plugin_myprofile_controller_test.rb
... | ... | @@ -5,7 +5,7 @@ require File.dirname(__FILE__) + '/../../../../app/models/uploaded_file' |
5 | 5 | # Re-raise errors caught by the controller. |
6 | 6 | class BscPluginMyprofileController; def rescue_action(e) raise e end; end |
7 | 7 | |
8 | -class BscPluginMyprofileControllerTest < Test::Unit::TestCase | |
8 | +class BscPluginMyprofileControllerTest < ActiveSupport::TestCase | |
9 | 9 | |
10 | 10 | VALID_CNPJ = '94.132.024/0001-48' |
11 | 11 | ... | ... |
plugins/bsc/test/unit/bsc_plugin/associate_enterprise_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../../../../../test/test_helper' |
2 | 2 | require File.dirname(__FILE__) + '/../../../../../app/models/uploaded_file' |
3 | 3 | |
4 | -class BscPlugin::AssociateEnterpriseTest < Test::Unit::TestCase | |
4 | +class BscPlugin::AssociateEnterpriseTest < ActiveSupport::TestCase | |
5 | 5 | VALID_CNPJ = '94.132.024/0001-48' |
6 | 6 | |
7 | 7 | def setup | ... | ... |
plugins/bsc/test/unit/bsc_plugin/bsc_test.rb
... | ... | @@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../../../../../test/test_helper' |
2 | 2 | require File.dirname(__FILE__) + '/../../../../../app/models/uploaded_file' |
3 | 3 | require File.dirname(__FILE__) + '/../../../lib/ext/enterprise' |
4 | 4 | |
5 | -class BscPlugin::BscTest < Test::Unit::TestCase | |
5 | +class BscPlugin::BscTest < ActiveSupport::TestCase | |
6 | 6 | VALID_CNPJ = '94.132.024/0001-48' |
7 | 7 | |
8 | 8 | def setup | ... | ... |
plugins/bsc/test/unit/bsc_plugin/contract_test.rb
... | ... | @@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../../../../../test/test_helper' |
2 | 2 | #require File.dirname(__FILE__) + '/../../../../../app/models/uploaded_file' |
3 | 3 | #require File.dirname(__FILE__) + '/../../../lib/ext/enterprise' |
4 | 4 | |
5 | -class BscPlugin::ContractTest < Test::Unit::TestCase | |
5 | +class BscPlugin::ContractTest < ActiveSupport::TestCase | |
6 | 6 | def setup |
7 | 7 | @contract = BscPlugin::Contract.new(:bsc => BscPlugin::Bsc.new, :client_name => 'Marvin') |
8 | 8 | end | ... | ... |
plugins/bsc/test/unit/bsc_plugin/sale_test.rb
plugins/bsc/test/unit/bsc_plugin_test.rb
... | ... | @@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../../../../test/test_helper' |
2 | 2 | require File.dirname(__FILE__) + '/../../../../app/models/uploaded_file' |
3 | 3 | require File.dirname(__FILE__) + '/../../lib/ext/enterprise' |
4 | 4 | |
5 | -class BscPluginTest < Test::Unit::TestCase | |
5 | +class BscPluginTest < ActiveSupport::TestCase | |
6 | 6 | |
7 | 7 | VALID_CNPJ = '94.132.024/0001-48' |
8 | 8 | ... | ... |
plugins/bsc/test/unit/ext/enterprise_test.rb
... | ... | @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../../../../../app/models/uploaded_file' |
3 | 3 | require File.dirname(__FILE__) + '/../../../../../app/models/enterprise' |
4 | 4 | require File.dirname(__FILE__) + '/../../../lib/ext/enterprise' |
5 | 5 | |
6 | -class EnterpriseTest < Test::Unit::TestCase | |
6 | +class EnterpriseTest < ActiveSupport::TestCase | |
7 | 7 | VALID_CNPJ = '94.132.024/0001-48' |
8 | 8 | |
9 | 9 | def setup | ... | ... |
plugins/bsc/test/unit/ext/product_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../../../../../test/test_helper' |
2 | 2 | require File.dirname(__FILE__) + '/../../../../../app/models/uploaded_file' |
3 | 3 | |
4 | -class ProductTest < Test::Unit::TestCase | |
4 | +class ProductTest < ActiveSupport::TestCase | |
5 | 5 | VALID_CNPJ = '94.132.024/0001-48' |
6 | 6 | |
7 | 7 | should 'return have bsc' do | ... | ... |
plugins/send_email/test/functional/send_email_plugin_admin_controller_test.rb
... | ... | @@ -4,7 +4,7 @@ require File.dirname(__FILE__) + '/../../controllers/send_email_plugin_admin_con |
4 | 4 | # Re-raise errors caught by the controller. |
5 | 5 | class SendEmailPluginAdminController; def rescue_action(e) raise e end; end |
6 | 6 | |
7 | -class SendEmailPluginAdminControllerTest < Test::Unit::TestCase | |
7 | +class SendEmailPluginAdminControllerTest < ActiveSupport::TestCase | |
8 | 8 | |
9 | 9 | def setup |
10 | 10 | @controller = SendEmailPluginAdminController.new | ... | ... |
plugins/send_email/test/functional/send_email_plugin_base_controller_test.rb
... | ... | @@ -51,7 +51,7 @@ def run_common_tests |
51 | 51 | end |
52 | 52 | end |
53 | 53 | |
54 | -class SendEmailPluginProfileControllerTest < Test::Unit::TestCase | |
54 | +class SendEmailPluginProfileControllerTest < ActiveSupport::TestCase | |
55 | 55 | def setup |
56 | 56 | @controller = SendEmailPluginProfileController.new |
57 | 57 | @request = ActionController::TestRequest.new |
... | ... | @@ -66,7 +66,7 @@ class SendEmailPluginProfileControllerTest < Test::Unit::TestCase |
66 | 66 | run_common_tests() |
67 | 67 | end |
68 | 68 | |
69 | -class SendEmailPluginEnvironmentControllerTest < Test::Unit::TestCase | |
69 | +class SendEmailPluginEnvironmentControllerTest < ActiveSupport::TestCase | |
70 | 70 | def setup |
71 | 71 | @controller = SendEmailPluginEnvironmentController.new |
72 | 72 | @request = ActionController::TestRequest.new | ... | ... |
plugins/send_email/test/unit/send_email_plugin_mail_test.rb
plugins/send_email/test/unit/send_email_plugin_sender_test.rb
plugins/send_email/test/unit/send_email_plugin_test.rb
plugins/shopping_cart/test/functional/shopping_cart_plugin_myprofile_controller_test.rb
... | ... | @@ -4,7 +4,7 @@ require File.dirname(__FILE__) + '/../../controllers/shopping_cart_plugin_myprof |
4 | 4 | # Re-raise errors caught by the controller. |
5 | 5 | class ShoppingCartPluginMyprofileController; def rescue_action(e) raise e end; end |
6 | 6 | |
7 | -class ShoppingCartPluginMyprofileControllerTest < Test::Unit::TestCase | |
7 | +class ShoppingCartPluginMyprofileControllerTest < ActiveSupport::TestCase | |
8 | 8 | |
9 | 9 | TIME_FORMAT = '%Y-%m-%d' |
10 | 10 | ... | ... |
plugins/shopping_cart/test/functional/shopping_cart_plugin_profile_controller_test.rb
... | ... | @@ -4,7 +4,7 @@ require File.dirname(__FILE__) + '/../../controllers/shopping_cart_plugin_profil |
4 | 4 | # Re-raise errors caught by the controller. |
5 | 5 | class ShoppingCartPluginProfileController; def rescue_action(e) raise e end; end |
6 | 6 | |
7 | -class ShoppingCartPluginProfileControllerTest < Test::Unit::TestCase | |
7 | +class ShoppingCartPluginProfileControllerTest < ActiveSupport::TestCase | |
8 | 8 | |
9 | 9 | def setup |
10 | 10 | @controller = ShoppingCartPluginProfileController.new | ... | ... |
plugins/shopping_cart/test/unit/shopping_cart_plugin/cart_helper_test.rb
plugins/shopping_cart/test/unit/shopping_cart_plugin_test.rb