Sha256: af70d2be3b11c05bc09014ece3285b87bc50a1468217bf9b791b7db00dada55d
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require File.dirname(__FILE__) + '/../../test_helper' require 'admin/settings_controller' # Re-raise errors caught by the controller. class Admin::SettingsController; def rescue_action(e) raise e end; end class Admin::SettingsControllerTest < Test::Unit::TestCase fixtures :users def setup @controller = Admin::SettingsController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new @request.session = { :user_id => users(:tobi).id } end def test_index get :index assert_template 'index' end def test_redirect get :redirect assert_response :redirect, :controller => 'admin/settings', :action => 'index' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typo-5.0.2 | test/functional/admin/settings_controller_test.rb |