Commit 369944ef6c22509b58a49558dfd48ee0ca6ef98c

Authored by Antonio Terceiro
1 parent 1e0d9a57

s/Test::Unit/ActiveSupport/

test/test_helper.rb
... ... @@ -18,7 +18,7 @@ Thumbnail.attachment_options[:path_prefix] = 'test/tmp/public/thumbnails'
18 18 FastGettext.add_text_domain 'noosferotest', :type => :chain, :chain => []
19 19 FastGettext.default_text_domain = 'noosferotest'
20 20  
21   -class Test::Unit::TestCase
  21 +class ActiveSupport::TestCase
22 22 # Transactional fixtures accelerate your tests by wrapping each test method
23 23 # in a transaction that's rolled back on completion. This ensures that the
24 24 # test database remains unchanged so your fixtures don't have to be reloaded
... ...
test/unit/certifier_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class CertifierTest < Test::Unit::TestCase
  3 +class CertifierTest < ActiveSupport::TestCase
4 4  
5 5 should 'have link' do
6 6 certifier = Certifier.new
... ...
test/unit/chat_helper_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class ChatHelperTest < Test::Unit::TestCase
  3 +class ChatHelperTest < ActiveSupport::TestCase
4 4  
5 5 include ChatHelper
6 6  
... ...
test/unit/forum_helper_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class ForumHelperTest < Test::Unit::TestCase
  3 +class ForumHelperTest < ActiveSupport::TestCase
4 4  
5 5 include BlogHelper
6 6 include ForumHelper
... ...
test/unit/input_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class InputTest < Test::Unit::TestCase
  3 +class InputTest < ActiveSupport::TestCase
4 4  
5 5 should 'require product_category' do
6 6 product_category = fast_create(ProductCategory, :name => 'Products')
... ...
test/unit/load_config_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class LoadConfigTest < Test::Unit::TestCase
  3 +class LoadConfigTest < ActiveSupport::TestCase
4 4  
5 5 should 'ensure NOOSFERO_CONF was defined' do
6 6 assert NOOSFERO_CONF
... ...
test/unit/manage_products_helper_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class ManageProductsHelperTest < Test::Unit::TestCase
  3 +class ManageProductsHelperTest < ActiveSupport::TestCase
4 4  
5 5 include ManageProductsHelper
6 6 include ContentViewerHelper
... ...
test/unit/plugin_manager_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class PluginManagerTest < Test::Unit::TestCase
  3 +class PluginManagerTest < ActiveSupport::TestCase
4 4  
5 5 def setup
6 6 @environment = Environment.default
... ...
test/unit/plugin_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class PluginTest < Test::Unit::TestCase
  3 +class PluginTest < ActiveSupport::TestCase
4 4  
5 5 def setup
6 6 @environment = Environment.default
... ...
test/unit/profile_search_block_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class ProfileSearchBlockTest < Test::Unit::TestCase
  3 +class ProfileSearchBlockTest < ActiveSupport::TestCase
4 4  
5 5 should 'describe itself' do
6 6 assert_not_equal Block.description, ProfileSearchBlock.description
... ...
test/unit/qualifier_certifier_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class QualifierCertifierTest < Test::Unit::TestCase
  3 +class QualifierCertifierTest < ActiveSupport::TestCase
4 4  
5 5 should 'qualifier has many certifiers' do
6 6 env_one = fast_create(Environment)
... ...
test/unit/qualifier_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class QualifierTest < Test::Unit::TestCase
  3 +class QualifierTest < ActiveSupport::TestCase
4 4  
5 5 should 'environment is mandatory' do
6 6 qualifier = Qualifier.new(:name => 'Qualifier without environment')
... ...
test/unit/scrap_notifier_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class ScrapNotifierTest < Test::Unit::TestCase
  3 +class ScrapNotifierTest < ActiveSupport::TestCase
4 4 FIXTURES_PATH = File.dirname(__FILE__) + '/../fixtures'
5 5 CHARSET = "utf-8"
6 6  
... ...
test/unit/short_filename_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class NoosferoFilenamesTest < Test::Unit::TestCase
  3 +class NoosferoFilenamesTest < ActiveSupport::TestCase
4 4  
5 5 include ShortFilename
6 6  
... ...
test/unit/white_list_filter_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class WhiteListFilterTest < Test::Unit::TestCase
  3 +class WhiteListFilterTest < ActiveSupport::TestCase
4 4  
5 5 include WhiteListFilter
6 6  
... ...