Commit 129c0e17eac256f3c74441237a4cea4a39e3883c

Authored by Antonio Terceiro
1 parent 2924c74c

Test classes must inherit from ActiveSupport::TestCase

test/unit/abuse_complaint_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class AbuseComplaintTest < Test::Unit::TestCase
  3 +class AbuseComplaintTest < ActiveSupport::TestCase
4 4  
5 5 should 'be related with a reported' do
6 6 reported = fast_create(Profile)
... ...
test/unit/abuse_report_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class AbuseReportTest < Test::Unit::TestCase
  3 +class AbuseReportTest < ActiveSupport::TestCase
4 4  
5 5 def setup
6 6 @reported = fast_create(Profile)
... ...
test/unit/display_helper_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class DisplayHelperTest < Test::Unit::TestCase
  3 +class DisplayHelperTest < ActiveSupport::TestCase
4 4  
5 5 include DisplayHelper
6 6 include ActionView::Helpers::TagHelper
... ...
test/unit/multi_tenancy.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2 require 'noosfero/multi_tenancy'
3 3  
4   -class MultiTenancyTest < Test::Unit::TestCase
  4 +class MultiTenancyTest < ActiveSupport::TestCase
5 5  
6 6 def test_get_mapping_if_is_set
7 7 mapping = { :env => {} }
... ...
test/unit/tags_helper_test.rb
1 1 require File.dirname(__FILE__) + '/../test_helper'
2 2  
3   -class TagsHelperTest < Test::Unit::TestCase
  3 +class TagsHelperTest < ActiveSupport::TestCase
4 4  
5 5 include ApplicationHelper
6 6 include TagsHelper
... ...