Sha256: 7e93282205fc181ee95fa2f26ef7fb08ef889ec5d52202eb9b68047d041dfb37
Contents?: true
Size: 904 Bytes
Versions: 1
Compression:
Stored size: 904 Bytes
Contents
# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'spec/helper' class TCAdapterController < Ramaze::Controller map '/' def index "The index" end end $output = StringIO.new Ramaze::Log.loggers << Ramaze::Informer.new($output) describe "Adapter" do ramaze ramaze_options behaves_like "http" it 'should do a simple request' do get('/').body.should == 'The index' end it 'should measure request processing time' do Ramaze::Global.benchmarking = true $output.string = "" get('/') $output.string.should =~ /request took/ Ramaze::Global.benchmarking = false end it 'should not measure request processing time' do Ramaze::Global.benchmarking = false $output.string = "" get('/') $output.string.should.not =~ /request took/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clivecrous-ramaze-0.3.9.5 | spec/ramaze/adapter.rb |