Commit f26b098ce17d57458c472ffd1b08ca6b3ea65a67

Authored by JoenioCosta
1 parent 11142e99

ActionItem192: fixing functional tests

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1726 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/functional/catalog_controller_test.rb
... ... @@ -12,8 +12,8 @@ class CatalogControllerTest < Test::Unit::TestCase
12 12 end
13 13  
14 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 17 end
18 18  
19 19 def test_valid_xhtml
... ...
test/functional/enterprise_validation_test.rb
... ... @@ -20,11 +20,15 @@ class EnterpriseValidationControllerTest < Test::Unit::TestCase
20 20 end
21 21  
22 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 24 end
25 25  
26 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 32 end
29 33  
30 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 16 end
17 17  
18 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 20 end
21 21  
22 22 def test_valid_xhtml
... ...