Sha256: 8203bb57acc9cb2f0cc383e26bc1fa7aaf0526732c28b84dfe2e49dcd114df19

Contents?: true

Size: 374 Bytes

Versions: 19

Compression:

Stored size: 374 Bytes

Contents

require File.expand_path('../../../spec/helper', __FILE__)
require File.expand_path('../../../examples/helpers/cache', __FILE__)

describe 'Caching' do
  behaves_like :rack_test

  it '/' do
    3.times do
      lambda{ get('/') }.should.not.change{ get('/').body }
    end

    3.times do
      lambda{ get('/invalidate') }.should.change{ get('/').body }
    end
  end
end

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
ramaze-2023.01.06 spec/examples/caching.rb
Pistos-ramaze-2009.06.12 spec/examples/caching.rb
manveru-ramaze-2009.07 spec/examples/caching.rb
ramaze-2012.12.08 spec/examples/caching.rb
ramaze-2012.12.08b spec/examples/caching.rb
ramaze-2012.04.14 spec/examples/caching.rb
ramaze-2012.03.07 spec/examples/caching.rb
ramaze-2011.12.28 spec/examples/caching.rb
ramaze-2011.10.23 spec/examples/caching.rb
ramaze-2011.07.25 spec/examples/caching.rb
ramaze-2011.01.30 spec/examples/caching.rb
ramaze-2011.01 spec/examples/caching.rb
ramaze-2010.06.18 spec/examples/caching.rb
ramaze-2010.04.04 spec/examples/caching.rb
ramaze-2010.04 spec/examples/caching.rb
ramaze-2010.03 spec/examples/caching.rb
ramaze-2010.01 spec/examples/caching.rb
ramaze-2009.10 spec/examples/caching.rb
ramaze-2009.07 spec/examples/caching.rb