This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/test/integration/common_views_test.rb
2012-01-03 16:18:32 +00:00

73 lines
2.1 KiB
Ruby

# redMine - project management software
# Copyright (C) 2006-2007 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require File.dirname(__FILE__) + '/../test_helper'
require File.dirname(__FILE__) + '/../../../../../test/test_helper'
class DeleteTagTest < ActionController::IntegrationTest
fixtures :projects,
:users,
:roles,
:members,
:member_roles,
:issues,
:issue_statuses,
:versions,
:trackers,
:projects_trackers,
:issue_categories,
:enabled_modules,
:enumerations,
:attachments,
:workflows,
:custom_fields,
:custom_values,
:custom_fields_projects,
:custom_fields_trackers,
:time_entries,
:journals,
:journal_details,
:queries,
:contacts,
:contacts_projects,
:deals,
:notes,
:tags,
:taggings
def setup
RedmineContacts::TestCase.prepare
@request = ActionController::TestRequest.new
@response = ActionController::TestResponse.new
@request.env['HTTP_REFERER'] = '/'
end
test "View user" do
log_user("rhill", "foo")
get "/users/2"
assert_response :success
end
test "View contacts activity" do
log_user("admin", "admin")
get "/projects/ecookbook/activity?show_contacts=1"
assert_response :success
end
end