Commit f26b098ce17d57458c472ffd1b08ca6b3ea65a67
1 parent
11142e99
Exists in
master
and in
29 other branches
ActionItem192: fixing functional tests
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1726 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
9 additions
and
5 deletions
Show diff stats
test/functional/catalog_controller_test.rb
| @@ -12,8 +12,8 @@ class CatalogControllerTest < Test::Unit::TestCase | @@ -12,8 +12,8 @@ class CatalogControllerTest < Test::Unit::TestCase | ||
| 12 | end | 12 | end |
| 13 | 13 | ||
| 14 | def test_local_files_reference | 14 | def test_local_files_reference |
| 15 | - user = create_user('user_test').person | ||
| 16 | - assert_local_files_reference :get, :index, :profile => user.identifier | 15 | + ent = Enterprise.create!(:identifier => 'test_enterprise1', :name => 'Test enteprise1') |
| 16 | + assert_local_files_reference :get, :index, :profile => ent.identifier | ||
| 17 | end | 17 | end |
| 18 | 18 | ||
| 19 | def test_valid_xhtml | 19 | def test_valid_xhtml |
test/functional/enterprise_validation_test.rb
| @@ -20,11 +20,15 @@ class EnterpriseValidationControllerTest < Test::Unit::TestCase | @@ -20,11 +20,15 @@ class EnterpriseValidationControllerTest < Test::Unit::TestCase | ||
| 20 | end | 20 | end |
| 21 | 21 | ||
| 22 | def test_local_files_reference | 22 | def test_local_files_reference |
| 23 | - assert_local_files_reference :get, :index, :profile => 'ze' | 23 | + assert_local_files_reference :get, :index, :profile => 'myorg' |
| 24 | end | 24 | end |
| 25 | 25 | ||
| 26 | def test_valid_xhtml | 26 | def test_valid_xhtml |
| 27 | - assert_valid_xhtml | 27 | + |
| 28 | + # FIXME remove this after enable assert_valid_xhtml | ||
| 29 | + Profile.find_by_identifier('myorg') | ||
| 30 | + | ||
| 31 | + assert_valid_xhtml :get, :index, :profile => 'myorg' | ||
| 28 | end | 32 | end |
| 29 | 33 | ||
| 30 | should 'list pending validations on index' do | 34 | should 'list pending validations on index' do |
test/functional/manage_products_controller_test.rb
| @@ -16,7 +16,7 @@ class ManageProductsControllerTest < Test::Unit::TestCase | @@ -16,7 +16,7 @@ class ManageProductsControllerTest < Test::Unit::TestCase | ||
| 16 | end | 16 | end |
| 17 | 17 | ||
| 18 | def test_local_files_reference | 18 | def test_local_files_reference |
| 19 | - assert_local_files_reference :get, :index, :profile => 'test_user' | 19 | + assert_local_files_reference :get, :index, :profile => @enterprise.identifier |
| 20 | end | 20 | end |
| 21 | 21 | ||
| 22 | def test_valid_xhtml | 22 | def test_valid_xhtml |