Commit 8867b19824d280fd0c0546b5083829387cdf0ab3

Authored by Rafael Martins
1 parent 2a082d0b

Replaced 'Test::Unit' with 'ActiveSupport' in a few unit tests

test/unit/article_test.rb
@@ -5,7 +5,7 @@ class ArticleTest < ActiveSupport::TestCase @@ -5,7 +5,7 @@ class ArticleTest < ActiveSupport::TestCase
5 fixtures :environments 5 fixtures :environments
6 6
7 def setup 7 def setup
8 - Test::Unit::TestCase::setup 8 + ActiveSupport::TestCase::setup
9 @profile = create_user('testing').person 9 @profile = create_user('testing').person
10 end 10 end
11 attr_reader :profile 11 attr_reader :profile
test/unit/category_finder_test.rb
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper' @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper'
3 class CategoryFinderTest < ActiveSupport::TestCase 3 class CategoryFinderTest < ActiveSupport::TestCase
4 4
5 def setup 5 def setup
6 - Test::Unit::TestCase::setup 6 + ActiveSupport::TestCase::setup
7 @category = Category.create!(:name => 'my category', :environment => Environment.default) 7 @category = Category.create!(:name => 'my category', :environment => Environment.default)
8 @finder = CategoryFinder.new(@category) 8 @finder = CategoryFinder.new(@category)
9 @product_category = fast_create(ProductCategory, :name => 'Products') 9 @product_category = fast_create(ProductCategory, :name => 'Products')
test/unit/enterprise_test.rb
@@ -4,7 +4,7 @@ class EnterpriseTest &lt; ActiveSupport::TestCase @@ -4,7 +4,7 @@ class EnterpriseTest &lt; ActiveSupport::TestCase
4 fixtures :profiles, :environments, :users 4 fixtures :profiles, :environments, :users
5 5
6 def setup 6 def setup
7 - Test::Unit::TestCase::setup 7 + ActiveSupport::TestCase::setup
8 @product_category = fast_create(ProductCategory, :name => 'Products') 8 @product_category = fast_create(ProductCategory, :name => 'Products')
9 end 9 end
10 10
test/unit/environment_finder_test.rb
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + &#39;/../test_helper&#39; @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + &#39;/../test_helper&#39;
3 class EnvironmentFinderTest < ActiveSupport::TestCase 3 class EnvironmentFinderTest < ActiveSupport::TestCase
4 4
5 def setup 5 def setup
6 - Test::Unit::TestCase::setup 6 + ActiveSupport::TestCase::setup
7 @product_category = fast_create(ProductCategory, :name => 'Products') 7 @product_category = fast_create(ProductCategory, :name => 'Products')
8 end 8 end
9 9
test/unit/environment_test.rb
@@ -4,7 +4,7 @@ class EnvironmentTest &lt; ActiveSupport::TestCase @@ -4,7 +4,7 @@ class EnvironmentTest &lt; ActiveSupport::TestCase
4 fixtures :environments 4 fixtures :environments
5 5
6 def setup 6 def setup
7 - Test::Unit::TestCase::setup 7 + ActiveSupport::TestCase::setup
8 end 8 end
9 9
10 def test_exists_default_and_it_is_unique 10 def test_exists_default_and_it_is_unique
test/unit/event_test.rb
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + &#39;/../test_helper&#39; @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + &#39;/../test_helper&#39;
3 class EventTest < ActiveSupport::TestCase 3 class EventTest < ActiveSupport::TestCase
4 4
5 def setup 5 def setup
6 - Test::Unit::TestCase::setup 6 + ActiveSupport::TestCase::setup
7 end 7 end
8 8
9 should 'be an article' do 9 should 'be an article' do
test/unit/product_test.rb
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + &#39;/../test_helper&#39; @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + &#39;/../test_helper&#39;
3 class ProductTest < ActiveSupport::TestCase 3 class ProductTest < ActiveSupport::TestCase
4 4
5 def setup 5 def setup
6 - Test::Unit::TestCase::setup 6 + ActiveSupport::TestCase::setup
7 @product_category = fast_create(ProductCategory, :name => 'Products') 7 @product_category = fast_create(ProductCategory, :name => 'Products')
8 end 8 end
9 9
test/unit/profile_test.rb
@@ -4,7 +4,7 @@ class ProfileTest &lt; ActiveSupport::TestCase @@ -4,7 +4,7 @@ class ProfileTest &lt; ActiveSupport::TestCase
4 fixtures :profiles, :environments, :users, :roles, :domains 4 fixtures :profiles, :environments, :users, :roles, :domains
5 5
6 def setup 6 def setup
7 - Test::Unit::TestCase::setup 7 + ActiveSupport::TestCase::setup
8 end 8 end
9 9
10 def test_identifier_validation 10 def test_identifier_validation
test/unit/tiny_mce_article_test.rb
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + &#39;/../test_helper&#39; @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + &#39;/../test_helper&#39;
3 class TinyMceArticleTest < ActiveSupport::TestCase 3 class TinyMceArticleTest < ActiveSupport::TestCase
4 4
5 def setup 5 def setup
6 - Test::Unit::TestCase::setup 6 + ActiveSupport::TestCase::setup
7 Article.rebuild_solr_index 7 Article.rebuild_solr_index
8 @profile = create_user('zezinho').person 8 @profile = create_user('zezinho').person
9 end 9 end