Fixup tests for changes to multi-editor functionality
This commit is contained in:
parent
a18c464357
commit
06105d280c
1 changed files with 9 additions and 1 deletions
|
@ -50,12 +50,20 @@ class SiteControllerTest < ActionController::TestCase
|
|||
|
||||
# and when they have...
|
||||
def test_edit_with_preference
|
||||
user = users(:public_user)
|
||||
user.preferred_editor = "potlatch"
|
||||
user.save!
|
||||
|
||||
get(:edit, nil, { 'user' => user.id })
|
||||
assert_response :success
|
||||
assert_template :partial => "_potlatch", :count => 1
|
||||
|
||||
user = users(:public_user)
|
||||
user.preferred_editor = "josm"
|
||||
user.save!
|
||||
|
||||
get(:edit, nil, { 'user' => user.id })
|
||||
assert_response :success
|
||||
assert_template :partial => "_josm", :count => 1
|
||||
assert_template "index"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue