```ruby
# coding: utf-8

require File.expand_path("../../../test_helper", __FILE__)

# :stopdoc:
class Admin::AliasesControllerTest < ActionController::TestCase
  def setup
    super
    create_administrator_session
    use_ssl
  end

  test "destroy person alias" do
    person = FactoryGirl.create(:person)
    person_alias = person.aliases.create!(:name => "Alias")
    delete :destroy, :id => person_alias.to_param, :person_id => person_alias.person.to_param, :format => "js"
    assert_response :success
    assert !Alias.exists?(person_alias.id), "alias"
  end

  test "destroy team alias" do
    team = FactoryGirl.create(:team)
    team_alias = team.aliases.create!(:name => "Alias")
    delete :destroy, :id => team_alias.to_param, :persoteam_id => team_alias.team.to_param, :format => "js"
    assert_response :success
    assert !Alias.exists?(team_alias.id), "alias"
  end
end
```

Fix bad param in test
user
```ruby
# coding: utf-8

require File.expand_path("../../../test_helper", __FILE__)

# :stopdoc:
class Admin::AliasesControllerTest < ActionController::TestCase
  def setup
    super
    create_administrator_session
    use_ssl
  end

  test "destroy person alias" do
    person = FactoryGirl.create(:person)
    person_alias = person.aliases.create!(:name => "Alias")
    delete :destroy, :id => person_alias.to_param, :person_id => person_alias.person.to_param, :format => "js"
    assert_response :success
    assert !Alias.exists?(person_alias.id), "alias"
  end

  test "destroy team alias" do
    team = FactoryGirl.create(:team)
    team_alias = team.aliases.create!(:name => "Alias")
    delete :destroy, :id => team_alias.to_param, :team_id => team_alias.team.to_param, :format => "js"
    assert_response :success
    assert !Alias.exists?(team_alias.id), "alias"
  end
end
```
assistant