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