Sha256: 2d3eca60b9da34cb4492439bad53f957332bfbb9173de8393721ab509f364d13

Contents?: true

Size: 323 Bytes

Versions: 17

Compression:

Stored size: 323 Bytes

Contents

require 'spec/helper'
require 'examples/helpers/cache'

describe 'Caching' do
  behaves_like 'http'
  ramaze

  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

17 entries across 17 versions & 4 rubygems

Version Path
Pistos-ramaze-2008.09 spec/examples/caching.rb
Pistos-ramaze-2008.12 spec/examples/caching.rb
Pistos-ramaze-2009.01 spec/examples/caching.rb
Pistos-ramaze-2009.02 spec/examples/caching.rb
manveru-ramaze-2008.07 spec/examples/caching.rb
manveru-ramaze-2008.08 spec/examples/caching.rb
manveru-ramaze-2008.09 spec/examples/caching.rb
manveru-ramaze-2008.10 spec/examples/caching.rb
manveru-ramaze-2008.12 spec/examples/caching.rb
manveru-ramaze-2009.01 spec/examples/caching.rb
ptomato-ramaze-2009.02.1 spec/examples/caching.rb
ptomato-ramaze-2009.02 spec/examples/caching.rb
ramaze-2009.01 spec/examples/caching.rb
ramaze-2008.11 spec/examples/caching.rb
ramaze-2008.06 spec/examples/caching.rb
ramaze-2009.03 spec/examples/caching.rb
ramaze-2009.02 spec/examples/caching.rb