Sha256: ddeeb934fac640f98504ea3ab3269aaaec44c30cd37270fff23c7e3d47654a47

Contents?: true

Size: 632 Bytes

Versions: 18

Compression:

Stored size: 632 Bytes

Contents

require File.expand_path('../../helper', __FILE__)
require File.expand_path('../../../example/session', __FILE__)

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

18 entries across 18 versions & 2 rubygems

Version Path
innate-2023.01.06 spec/example/session.rb
innate-2015.10.28 spec/example/session.rb
manveru-innate-2009.07 spec/example/session.rb
innate-2013.02.21 spec/example/session.rb
innate-2013.02 spec/example/session.rb
innate-2012.12 spec/example/session.rb
innate-2012.03 spec/example/session.rb
innate-2011.12 spec/example/session.rb
innate-2011.10 spec/example/session.rb
innate-2011.04 spec/example/session.rb
innate-2011.01 spec/example/session.rb
innate-2010.07 spec/example/session.rb
innate-2010.06.18 spec/example/session.rb
innate-2010.04 spec/example/session.rb
innate-2010.03 spec/example/session.rb
innate-2010.01 spec/example/session.rb
innate-2009.10 spec/example/session.rb
innate-2009.07 spec/example/session.rb