Sha256: 2794ccaa2dd84da480e1fbe00eb4a424fcff1944f431ef85d65b69f0986ea9e0
Contents?: true
Size: 698 Bytes
Versions: 9
Compression:
Stored size: 698 Bytes
Contents
require File.dirname(__FILE__) + '/../../test_helper' require 'admin/general_controller' # Re-raise errors caught by the controller. class Admin::GeneralController; def rescue_action(e) raise e end; end class Admin::GeneralControllerTest < Test::Unit::TestCase fixtures :users def setup @controller = Admin::GeneralController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @request.session = { :user => users(:tobi) } end def test_index get :index assert_rendered_file 'index' end def test_redirect get :redirect assert_redirected_to :controller => 'admin/general', :action => 'index' end end
Version data entries
9 entries across 9 versions & 1 rubygems