Sha256: e7c3a94a0b8bef1ab6aba303276494660f7cdd216e4a891b056fc57b02b02929
Contents?: true
Size: 566 Bytes
Versions: 22
Compression:
Stored size: 566 Bytes
Contents
require 'spec/helper' class TCRecordController < Ramaze::Controller map '/' def index 'The index' end def foo 'The foo' end end describe 'Adapter recording' do behaves_like 'http' ramaze :adapter => :webrick, :record => lambda{|request| request.remote_addr == '127.0.0.1' } @record = Ramaze::Record it 'should record' do get('/').body.should == 'The index' get('/foo').body.should == 'The foo' @record.size.should == 2 @record.first.path_info.should == '/' @record.last.path_info.should == '/foo' end end
Version data entries
22 entries across 22 versions & 5 rubygems