Commit cc9eeb043eab650ee07d1c9977b431fcf4cd1dad
1 parent
07025bff
Exists in
master
and in
28 other branches
ActionItem16: adding enterprise_validation controller
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@816 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
33 additions
and
0 deletions
Show diff stats
app/controllers/profile_admin/enterprise_validation_controller.rb
0 → 100644
| ... | ... | @@ -0,0 +1,30 @@ |
| 1 | +require File.dirname(__FILE__) + '/../test_helper' | |
| 2 | +require 'enterprise_validation_controller' | |
| 3 | + | |
| 4 | +# Re-raise errors caught by the controller. | |
| 5 | +class EnterpriseValidationController; def rescue_action(e) raise e end; end | |
| 6 | + | |
| 7 | +class EnterpriseValidationControllerTest < Test::Unit::TestCase | |
| 8 | + | |
| 9 | + fixtures :users | |
| 10 | + | |
| 11 | + def setup | |
| 12 | + @controller = EnterpriseValidationController.new | |
| 13 | + @request = ActionController::TestRequest.new | |
| 14 | + @response = ActionController::TestResponse.new | |
| 15 | + login_as 'ze' | |
| 16 | + end | |
| 17 | + | |
| 18 | + should 'list pending validations on index' do | |
| 19 | + flunk 'not yet' | |
| 20 | + end | |
| 21 | + | |
| 22 | + should 'prompt for needed data when approving or rejecting enterprise' do | |
| 23 | + flunk 'not yet' | |
| 24 | + end | |
| 25 | + | |
| 26 | + should 'be able to actually validate enterprise on request' do | |
| 27 | + flunk 'not yet' | |
| 28 | + end | |
| 29 | + | |
| 30 | +end | ... | ... |