Commit b88674da42465b9271af817c2b442feee736ba98
1 parent
47e8668b
Exists in
master
and in
29 other branches
ActionItem121: removing what should be removed anyway
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1058 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
0 additions
and
31 deletions
Show diff stats
test/integration/edit_enterprise_test.rb
... | ... | @@ -1,31 +0,0 @@ |
1 | -require "#{File.dirname(__FILE__)}/../test_helper" | |
2 | - | |
3 | -class EditEnterpriseTest < ActionController::IntegrationTest | |
4 | - all_fixtures | |
5 | - def test_edit_an_enterprise | |
6 | - get '/myprofile/colivre/enterprise_editor' | |
7 | - assert_response :success | |
8 | - | |
9 | - login('ze', 'test') | |
10 | - | |
11 | - get '/myprofile/colivre/profile_editor' | |
12 | - assert_response :success | |
13 | - assert_tag :tag => 'a', :attributes => { :href => '/myprofile/colivre/enterprise_editor'} | |
14 | - | |
15 | - get '/myprofile/colivre/enterprise_editor' | |
16 | - assert_response :success | |
17 | - assert_tag :tag => 'a', :attributes => {:href => '/myprofile/colivre/enterprise_editor/edit/5'} | |
18 | - | |
19 | - get '/myprofile/colivre/enterprise_editor/edit/5' | |
20 | - assert_response :success | |
21 | - assert_tag :tag => 'input', :attributes => {:name => 'enterprise[name]'} | |
22 | - | |
23 | - post '/myprofile/colivre/enterprise_editor/update/5', :enterprise => {'name' => 'new_name'} | |
24 | - assert_response :redirect | |
25 | - | |
26 | - follow_redirect! | |
27 | - assert_response :success | |
28 | - assert_equal '/myprofile/colivre/enterprise_editor', path | |
29 | - | |
30 | - end | |
31 | -end |