diff --git a/test/functional/catalog_controller_test.rb b/test/functional/catalog_controller_test.rb index 71a6b78..b8ab996 100644 --- a/test/functional/catalog_controller_test.rb +++ b/test/functional/catalog_controller_test.rb @@ -12,8 +12,8 @@ class CatalogControllerTest < Test::Unit::TestCase end def test_local_files_reference - user = create_user('user_test').person - assert_local_files_reference :get, :index, :profile => user.identifier + ent = Enterprise.create!(:identifier => 'test_enterprise1', :name => 'Test enteprise1') + assert_local_files_reference :get, :index, :profile => ent.identifier end def test_valid_xhtml diff --git a/test/functional/enterprise_validation_test.rb b/test/functional/enterprise_validation_test.rb index 93cebb4..8c35346 100644 --- a/test/functional/enterprise_validation_test.rb +++ b/test/functional/enterprise_validation_test.rb @@ -20,11 +20,15 @@ class EnterpriseValidationControllerTest < Test::Unit::TestCase end def test_local_files_reference - assert_local_files_reference :get, :index, :profile => 'ze' + assert_local_files_reference :get, :index, :profile => 'myorg' end def test_valid_xhtml - assert_valid_xhtml + + # FIXME remove this after enable assert_valid_xhtml + Profile.find_by_identifier('myorg') + + assert_valid_xhtml :get, :index, :profile => 'myorg' end should 'list pending validations on index' do diff --git a/test/functional/manage_products_controller_test.rb b/test/functional/manage_products_controller_test.rb index b6214e2..2e48126 100644 --- a/test/functional/manage_products_controller_test.rb +++ b/test/functional/manage_products_controller_test.rb @@ -16,7 +16,7 @@ class ManageProductsControllerTest < Test::Unit::TestCase end def test_local_files_reference - assert_local_files_reference :get, :index, :profile => 'test_user' + assert_local_files_reference :get, :index, :profile => @enterprise.identifier end def test_valid_xhtml -- libgit2 0.21.2