Test case cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10935 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
127a2508fa
commit
349049a539
|
@ -16,20 +16,13 @@
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
require 'my_controller'
|
|
||||||
|
|
||||||
# Re-raise errors caught by the controller.
|
|
||||||
class MyController; def rescue_action(e) raise e end; end
|
|
||||||
|
|
||||||
class MyControllerTest < ActionController::TestCase
|
class MyControllerTest < ActionController::TestCase
|
||||||
fixtures :users, :user_preferences, :roles, :projects, :members, :member_roles,
|
fixtures :users, :user_preferences, :roles, :projects, :members, :member_roles,
|
||||||
:issues, :issue_statuses, :trackers, :enumerations, :custom_fields, :auth_sources
|
:issues, :issue_statuses, :trackers, :enumerations, :custom_fields, :auth_sources
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@controller = MyController.new
|
|
||||||
@request = ActionController::TestRequest.new
|
|
||||||
@request.session[:user_id] = 2
|
@request.session[:user_id] = 2
|
||||||
@response = ActionController::TestResponse.new
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_index
|
def test_index
|
||||||
|
|
Loading…
Reference in New Issue