get :permalink, :code => 'wBz3--', :layers => 'T'
assert_response :redirect
- assert_redirected_to :controller => :site, :action => :index, :layers => 'T', :anchor => 'map=3/4.8779296875/3.955078125'
+ assert_redirected_to :controller => :site, :action => :index, :anchor => 'map=3/4.8779296875/3.955078125&layers=T'
get :permalink, :code => 'wBz3--', :node => 1
assert_response :redirect
# Test the right editor gets used when the user hasn't set a preference
def test_edit_without_preference
- get :edit, nil, { :user => users(:public_user).id }
+ get :edit, nil, :user => users(:public_user).id
assert_response :success
assert_template "edit"
assert_template :partial => "_#{DEFAULT_EDITOR}", :count => 1
user.preferred_editor = "id"
user.save!
- get :edit, nil, { :user => user.id }
+ get :edit, nil, :user => user.id
assert_response :success
assert_template "edit"
assert_template :partial => "_id", :count => 1
user.preferred_editor = "potlatch2"
user.save!
- get :edit, nil, { :user => user.id }
+ get :edit, nil, :user => user.id
assert_response :success
assert_template "edit"
assert_template :partial => "_potlatch2", :count => 1
user.preferred_editor = "potlatch"
user.save!
- get :edit, nil, { :user => user.id }
+ get :edit, nil, :user => user.id
assert_response :success
assert_template "edit"
assert_template :partial => "_potlatch", :count => 1
user.preferred_editor = "remote"
user.save!
- get :edit, nil, { :user => user.id }
+ get :edit, nil, :user => user.id
assert_response :success
assert_template "index"
end
assert_response :redirect
assert_redirected_to :controller => :user, :action => :login, :referer => "/welcome"
- get :welcome, nil, { :user => users(:public_user).id }
+ get :welcome, nil, :user => users(:public_user).id
assert_response :success
assert_template "welcome"
end
# Test the id frame
def test_id
- get :id, nil, { :user => users(:public_user).id }
+ get :id, nil, :user => users(:public_user).id
assert_response :success
assert_template "id"
assert_template :layout => false