Sha256: d771649619b4066e823f7eff0e02f9f66290858dba7cbb3e8ce95b266d9351ec

Contents?: true

Size: 566 Bytes

Versions: 7

Compression:

Stored size: 566 Bytes

Contents

require 'spec/helper'
require 'example/session'

describe 'example/session' do
  behaves_like :rack_test

  it 'starts at 0' do
    get('/').body.should =~ /Value is: 0/
  end

  it 'increments the counter' do
    get('/increment').body.should =~ /Value is: 1/
    get('/increment').body.should =~ /Value is: 2/
    get('/increment').body.should =~ /Value is: 3/
  end

  it 'decrements the counter' do
    get('/decrement').body.should =~ /Value is: 2/
    get('/decrement').body.should =~ /Value is: 1/
    get('/decrement').body.should =~ /Value is: 0/
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
manveru-innate-2009.06.12 spec/example/session.rb
manveru-innate-2009.06 spec/example/session.rb
rjspotter-innate-2009.06.29 spec/example/session.rb
rjspotter-innate-2009.06.30 spec/example/session.rb
rjspotter-innate-2009.06.31 spec/example/session.rb
innate-2009.06 spec/example/session.rb
innate-2009.06.12 spec/example/session.rb