rdp/ruby-prof — Issue #65: ruby-prof/rails/profile_test_helper.rb, require environment
Author: jrochkind
Created: 2012-02-22 15:39:05+00:00
State: open

Trying to follow the "Profiling Rails" instructions to set up automated profile 'tests'.

Including copying and using the ruby-prof/rails/profile_test_helper.rb file.

I think these lines aren't right in that source?

# Load profile environment
env = ENV["RAILS_ENV"] = "profile"
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")

That raises a "no such file to load -- /some/path/config/environment"

Right, there's no file just "environment". Was that supposed to be "/../config/environment/#{env}" or something?

Or am I just doing something else wrong? Unless nobody else but me is actually trying to use this functionality, seems like if it was really broken like this someone would have noticed before now?