Sha256: 15c2fc13aba37de79186e11af1cf45b0443ae734a67ddfd507afbd3b2d0a0b30

Contents?: true

Size: 259 Bytes

Versions: 7

Compression:

Stored size: 259 Bytes

Contents

require "spec_helper"

describe ApplicationController do
  controller do
    def index
      head 200
    end
  end

  it "clears cache before each request" do
    Chanko::Loader.cache.should_receive(:clear).exactly(2)
    get :index
    get :index
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chanko-2.0.6 spec/controllers/application_controller_spec.rb
chanko-2.0.5 spec/controllers/application_controller_spec.rb
chanko-2.0.4 spec/controllers/application_controller_spec.rb
chanko-2.0.3 spec/controllers/application_controller_spec.rb
chanko-2.0.2 spec/controllers/application_controller_spec.rb
chanko-2.0.1 spec/controllers/application_controller_spec.rb
chanko-2.0.0 spec/controllers/application_controller_spec.rb