Sha256: 29f60dd2b7e5ab1ece22331cf641c08136784d94b46eacb9ab49bc65348e856d

Contents?: true

Size: 400 Bytes

Versions: 5

Compression:

Stored size: 400 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

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

  before(:each) do
    request.session = { :user => users(:tobi).id }
  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

5 entries across 5 versions & 1 rubygems

Version Path
typo-5.4.4 spec/controllers/admin/cache_controller_spec.rb
typo-5.4.3 spec/controllers/admin/cache_controller_spec.rb
typo-5.4.2 spec/controllers/admin/cache_controller_spec.rb
typo-5.4.1 spec/controllers/admin/cache_controller_spec.rb
typo-5.4 spec/controllers/admin/cache_controller_spec.rb