Sha256: 29567acfd964aeef016df7a700b2bc2549e991cb41213d5cf7f1ff0219e7c8e4

Contents?: true

Size: 785 Bytes

Versions: 2

Compression:

Stored size: 785 Bytes

Contents

require File.dirname(__FILE__) + '/../../../test/test_helper'
require File.dirname(__FILE__) + '/../../spec_helper'
require 'admin/users_controller'

# Re-raise errors caught by the controller.
class Admin::UsersController; def rescue_action(e) raise e end; end

describe Admin::CacheController, "rough port of the old functional test" do

  before(:each) do
    request.session = { :user => users(:tobi).id }
  end

  describe 'sweep action' do

    it 'should redirect to setting index' do
      get 'sweep'
      response.should redirect_to(:controller => '/admin/settings')
    end

  end

  describe 'sweep_html action' do

    it 'should redirect to setting index' do
      get 'sweep_html'
      response.should redirect_to(:controller => '/admin/settings')
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
typo-5.1.98 spec/controllers/admin/cache_controller_spec.rb
typo-5.2 spec/controllers/admin/cache_controller_spec.rb