Commit 8867b19824d280fd0c0546b5083829387cdf0ab3
1 parent
2a082d0b
Exists in
master
and in
29 other branches
Replaced 'Test::Unit' with 'ActiveSupport' in a few unit tests
Showing
9 changed files
with
9 additions
and
9 deletions
Show diff stats
test/unit/article_test.rb
test/unit/category_finder_test.rb
... | ... | @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper' |
3 | 3 | class CategoryFinderTest < ActiveSupport::TestCase |
4 | 4 | |
5 | 5 | def setup |
6 | - Test::Unit::TestCase::setup | |
6 | + ActiveSupport::TestCase::setup | |
7 | 7 | @category = Category.create!(:name => 'my category', :environment => Environment.default) |
8 | 8 | @finder = CategoryFinder.new(@category) |
9 | 9 | @product_category = fast_create(ProductCategory, :name => 'Products') | ... | ... |
test/unit/enterprise_test.rb
... | ... | @@ -4,7 +4,7 @@ class EnterpriseTest < ActiveSupport::TestCase |
4 | 4 | fixtures :profiles, :environments, :users |
5 | 5 | |
6 | 6 | def setup |
7 | - Test::Unit::TestCase::setup | |
7 | + ActiveSupport::TestCase::setup | |
8 | 8 | @product_category = fast_create(ProductCategory, :name => 'Products') |
9 | 9 | end |
10 | 10 | ... | ... |
test/unit/environment_finder_test.rb
... | ... | @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper' |
3 | 3 | class EnvironmentFinderTest < ActiveSupport::TestCase |
4 | 4 | |
5 | 5 | def setup |
6 | - Test::Unit::TestCase::setup | |
6 | + ActiveSupport::TestCase::setup | |
7 | 7 | @product_category = fast_create(ProductCategory, :name => 'Products') |
8 | 8 | end |
9 | 9 | ... | ... |
test/unit/environment_test.rb
test/unit/event_test.rb
test/unit/product_test.rb
... | ... | @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper' |
3 | 3 | class ProductTest < ActiveSupport::TestCase |
4 | 4 | |
5 | 5 | def setup |
6 | - Test::Unit::TestCase::setup | |
6 | + ActiveSupport::TestCase::setup | |
7 | 7 | @product_category = fast_create(ProductCategory, :name => 'Products') |
8 | 8 | end |
9 | 9 | ... | ... |
test/unit/profile_test.rb
test/unit/tiny_mce_article_test.rb
... | ... | @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../test_helper' |
3 | 3 | class TinyMceArticleTest < ActiveSupport::TestCase |
4 | 4 | |
5 | 5 | def setup |
6 | - Test::Unit::TestCase::setup | |
6 | + ActiveSupport::TestCase::setup | |
7 | 7 | Article.rebuild_solr_index |
8 | 8 | @profile = create_user('zezinho').person |
9 | 9 | end | ... | ... |