Commit 1d97315c624cbe2d72a3677bf1cd2bd8377e54ed
1 parent
cddbff5b
Exists in
master
and in
22 other branches
checkpoint
Showing
84 changed files
with
85 additions
and
85 deletions
Show diff stats
test/test_helper.rb
... | ... | @@ -14,7 +14,7 @@ FileUtils.rm_rf(File.join(RAILS_ROOT, 'index', 'test')) |
14 | 14 | Image.attachment_options[:path_prefix] = 'test/tmp/public/images' |
15 | 15 | Thumbnail.attachment_options[:path_prefix] = 'test/tmp/public/thumbnails' |
16 | 16 | |
17 | -class Test::Unit::TestCase | |
17 | +class ActiveSupport::TestCase | |
18 | 18 | # Transactional fixtures accelerate your tests by wrapping each test method |
19 | 19 | # in a transaction that's rolled back on completion. This ensures that the |
20 | 20 | # test database remains unchanged so your fixtures don't have to be reloaded | ... | ... |
test/unit/acts_as_filesystem_test.rb
test/unit/acts_as_having_boxes_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | -class ActsAsHavingBoxesTest < Test::Unit::TestCase | |
3 | +class ActsAsHavingBoxesTest < ActiveSupport::TestCase | |
4 | 4 | |
5 | 5 | should 'be able to find blocks by id' do |
6 | 6 | env = fast_create(Environment, :name => 'An environment without blocks') | ... | ... |
test/unit/acts_as_having_settings_test.rb
test/unit/application_helper_test.rb
test/unit/article_block_test.rb
test/unit/article_categorization_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | -class ArticleCategorizationTest < Test::Unit::TestCase | |
3 | +class ArticleCategorizationTest < ActiveSupport::TestCase | |
4 | 4 | |
5 | 5 | should 'use articles_categories table' do |
6 | 6 | assert_equal 'articles_categories', ArticleCategorization.table_name | ... | ... |
test/unit/article_test.rb
test/unit/assets_helper_test.rb
test/unit/block_test.rb
test/unit/blog_helper_test.rb
test/unit/boxes_helper_test.rb
test/unit/categories_helper_test.rb
test/unit/category_test.rb
test/unit/change_password_test.rb
test/unit/cms_helper_test.rb
test/unit/comment_notifier_test.rb
test/unit/comment_test.rb
test/unit/communities_block_test.rb
test/unit/community_test.rb
test/unit/consumption_test.rb
test/unit/contact_sender_test.rb
test/unit/content_viewer_helper_test.rb
test/unit/countries_helper_test.rb
test/unit/create_community_test.rb
test/unit/create_enterprise_test.rb
test/unit/dates_helper_test.rb
test/unit/disabled_enterprise_message_block_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | -class DisabledEnterpriseMessageBlockTest < Test::Unit::TestCase | |
3 | +class DisabledEnterpriseMessageBlockTest < ActiveSupport::TestCase | |
4 | 4 | |
5 | 5 | should 'provide description' do |
6 | 6 | assert_not_equal Block.description, DisabledEnterpriseMessageBlock.description | ... | ... |
test/unit/domain_test.rb
test/unit/email_activation_test.rb
test/unit/enterprise_homepage_test.rb
test/unit/enterprise_test.rb
test/unit/enterprises_block_test.rb
test/unit/environment_statistics_block_test.rb
test/unit/environment_test.rb
test/unit/events_helper_test.rb
test/unit/extended_tag_test.rb
test/unit/feed_handler_test.rb
test/unit/feed_updater_test.rb
test/unit/feed_writer_test.rb
test/unit/folder_helper_test.rb
test/unit/forms_helper_test.rb
test/unit/friendship_test.rb
test/unit/google_maps_test.rb
test/unit/image_gallery_test.rb
test/unit/image_test.rb
test/unit/integer_core_ext_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | 3 | # tests for Integer core extension. See lib/noosfero/core_ext/integer.rb |
4 | -class IntegerCoreExtTest < Test::Unit::TestCase | |
4 | +class IntegerCoreExtTest < ActiveSupport::TestCase | |
5 | 5 | |
6 | 6 | should 'display bytes in human readable' do |
7 | 7 | assert_equal '2 bytes', 2.bytes.to_humanreadable | ... | ... |
test/unit/language_helper_test.rb
test/unit/lightbox_helper_test.rb
test/unit/location_block_test.rb
test/unit/login_block_test.rb
test/unit/main_block_test.rb
test/unit/members_block_test.rb
test/unit/noosfero_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | require 'noosfero' |
3 | 3 | |
4 | -class NoosferoTest < Test::Unit::TestCase | |
4 | +class NoosferoTest < ActiveSupport::TestCase | |
5 | 5 | |
6 | 6 | def test_should_list_controllers_in_directory |
7 | 7 | Dir.expects(:glob).with("#{RAILS_ROOT}/app/controllers/lala/*_controller.rb").returns(["app/controllers/lala/system_admin_controller.rb", "app/controllers/lala/environment_admin_controller.rb", "app/controllers/lala/public_controller.rb", "app/controllers/lala/profile_admin_controller.rb"]).once | ... | ... |
test/unit/organization_test.rb
test/unit/pending_task_notifier_test.rb
test/unit/person_test.rb
test/unit/product_category_test.rb
test/unit/product_test.rb
test/unit/profile_helper_test.rb
test/unit/profile_image_block_test.rb
test/unit/profile_info_block_test.rb
test/unit/profile_list_block_test.rb
test/unit/profile_test.rb
test/unit/recent_documents_block_test.rb
test/unit/region_test.rb
test/unit/rss_feed_test.rb
test/unit/search_helper_test.rb
test/unit/slug_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | 3 | # tests for String#to_slug core extension. See lib/noosfero/core_ext/string.rb |
4 | -class SlugTest < Test::Unit::TestCase | |
4 | +class SlugTest < ActiveSupport::TestCase | |
5 | 5 | |
6 | 6 | should 'keep only alphanum' do |
7 | 7 | assert_equal 'abc', 'abc!)@(*#&@!*#*)'.to_slug | ... | ... |
test/unit/sqlite_extension_test.rb
... | ... | @@ -2,7 +2,7 @@ require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | 3 | # if this test is run without SQLite (e.g. with mysql or postgres), the tests |
4 | 4 | # will just pass. The idea is to test our local extensions to SQLite. |
5 | -class SQliteExtensionTest < Test::Unit::TestCase | |
5 | +class SQliteExtensionTest < ActiveSupport::TestCase | |
6 | 6 | |
7 | 7 | if ActiveRecord::Base.connection.adapter_name =~ /^sqlite$/i |
8 | 8 | ... | ... |
test/unit/string_core_ext_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | 3 | # tests for String core extension. See lib/noosfero/core_ext/string.rb |
4 | -class StringCoreExtTest < Test::Unit::TestCase | |
4 | +class StringCoreExtTest < ActiveSupport::TestCase | |
5 | 5 | |
6 | 6 | # tests for String#to_slug |
7 | 7 | should 'keep only alphanum' do | ... | ... |
test/unit/tags_block_test.rb
test/unit/task_mailer_test.rb
test/unit/task_test.rb
test/unit/text_article_test.rb
test/unit/textile_article_test.rb
test/unit/thickbox_helper_test.rb
test/unit/thumbnail_test.rb
test/unit/tiny_mce_article_test.rb
test/unit/uploaded_file_test.rb
test/unit/user_mailer_test.rb
test/unit/user_test.rb
1 | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | |
3 | -class UserTest < Test::Unit::TestCase | |
3 | +class UserTest < ActiveSupport::TestCase | |
4 | 4 | # Be sure to include AuthenticatedTestHelper in test/test_helper.rb instead. |
5 | 5 | # Then, you can remove it from this and the functional test. |
6 | 6 | include AuthenticatedTestHelper | ... | ... |
test/unit/validation_info_test.rb
vendor/plugins/xss_terminate/lib/xss_terminate.rb
... | ... | @@ -80,7 +80,7 @@ module XssTerminate |
80 | 80 | end |
81 | 81 | |
82 | 82 | def sanitize_fields_with_full |
83 | - sanitizer = RailsSanitize.full_sanitizer | |
83 | + sanitizer = ActionView::Base.full_sanitizer | |
84 | 84 | columns, columns_serialized = sanitize_columns(:full) |
85 | 85 | columns.each do |column| |
86 | 86 | sanitize_field(sanitizer, column.to_sym, columns_serialized.include?(column), :full) |
... | ... | @@ -88,7 +88,7 @@ module XssTerminate |
88 | 88 | end |
89 | 89 | |
90 | 90 | def sanitize_fields_with_white_list |
91 | - sanitizer = RailsSanitize.white_list_sanitizer | |
91 | + sanitizer = ActionView::Base.white_list_sanitizer | |
92 | 92 | columns, columns_serialized = sanitize_columns(:white_list) |
93 | 93 | columns.each do |column| |
94 | 94 | sanitize_field(sanitizer, column.to_sym, columns_serialized.include?(column), :white_list) | ... | ... |