Sha256: 92aa3a8ed304abe9388dcae40e28e9995612486b86f83d05aaf379ee3675aae7
Contents?: true
Size: 575 Bytes
Versions: 6
Compression:
Stored size: 575 Bytes
Contents
require File.dirname(__FILE__) + '/../../../test/test_helper' require File.dirname(__FILE__) + '/../../spec_helper' require 'admin/settings_controller' # Re-raise errors caught by the controller. class Admin::SettingsController; def rescue_action(e) raise e end; end describe Admin::SettingsController do before do request.session = { :user => 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
6 entries across 6 versions & 1 rubygems