Commit 7dd414ea2334cefd26b7505f512c32beb355805c
1 parent
b094a269
Exists in
master
and in
22 other branches
Fixed test
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
plugins/stoa/test/functional/profile_editor_controller_test.rb
... | ... | @@ -27,12 +27,12 @@ class StoaPluginProfileEditorControllerTest < ActionController::TestCase |
27 | 27 | assert_tag_in_string @response.body, :tag => 'input', :attributes => { :id => 'usp_id_field' } |
28 | 28 | end |
29 | 29 | |
30 | - should 'not show usp_id field if person already filled it' do | |
30 | + should 'show usp_id field as disabled if person already filled it' do | |
31 | 31 | person.usp_id = 12345 |
32 | 32 | person.save |
33 | 33 | get :edit, :profile => person.identifier |
34 | - assert_no_tag_in_string @response.body, :tag => 'label', :content => /USP number/, :attributes => { :for => 'usp_id_field' } | |
35 | - assert_no_tag_in_string @response.body, :tag => 'input', :attributes => { :id => 'usp_id_field' } | |
34 | + assert_tag_in_string @response.body, :tag => 'label', :content => /USP number/, :attributes => { :for => 'usp_id_field' } | |
35 | + assert_tag_in_string @response.body, :tag => 'input', :attributes => { :id => 'usp_id_field', :disabled => 'disabled' } | |
36 | 36 | end |
37 | 37 | |
38 | 38 | should 'not display field if profile is an organization' do | ... | ... |