以前紹介した
BenchmarkForRails
は、Railsアプリケーションの詳細なベンチマークを
行うことが出来る便利なプラグインですが、rake test:unitsの実行でエラーが発生する問題が
起こっていました。
調べてみたところ、init.rbファイルにrequire文が
足りていないのが原因のようだったので、対処法を紹介します。
vendor/plugins/benchmarkforrails/init.rb
rails>>
require 'dispatcher'
require 'benchmark_for_rails'
The special :request benchmark. This tries to encompass everything that runs
to handle a request.
BenchmarkForRails.watch(:request, ::Dispatcher, :dispatch)
<<--
上記の2行目を加えることで、エラーが出なくなります。
posted by
genki on Sat 22 Dec 2007 at 22:21 with 0 comments
