diff --git a/app/controllers/profile_admin/enterprise_validation_controller.rb b/app/controllers/profile_admin/enterprise_validation_controller.rb new file mode 100644 index 0000000..f6e265a --- /dev/null +++ b/app/controllers/profile_admin/enterprise_validation_controller.rb @@ -0,0 +1,3 @@ +class EnterpriseValidationController < EnterpriseAdminController + +end diff --git a/test/functional/enterprise_validation_test.rb b/test/functional/enterprise_validation_test.rb new file mode 100644 index 0000000..9b824b4 --- /dev/null +++ b/test/functional/enterprise_validation_test.rb @@ -0,0 +1,30 @@ +require File.dirname(__FILE__) + '/../test_helper' +require 'enterprise_validation_controller' + +# Re-raise errors caught by the controller. +class EnterpriseValidationController; def rescue_action(e) raise e end; end + +class EnterpriseValidationControllerTest < Test::Unit::TestCase + + fixtures :users + + def setup + @controller = EnterpriseValidationController.new + @request = ActionController::TestRequest.new + @response = ActionController::TestResponse.new + login_as 'ze' + end + + should 'list pending validations on index' do + flunk 'not yet' + end + + should 'prompt for needed data when approving or rejecting enterprise' do + flunk 'not yet' + end + + should 'be able to actually validate enterprise on request' do + flunk 'not yet' + end + +end -- libgit2 0.21.2