colszowka/simplecov — Issue #113: Check Rails version before accessing ::Rails::Railtie
Author: sgronblo
Created: 2012-02-24 10:41:17+00:00
State: open

When requiring simplecov in a Rails 2 project, I get an uninitialized constant error due to ::Rails::Railtie. If I comment out the part that loads the railtie.rb file, code coverage generation works fine. Maybe you could define the Rake task in a different way if using Rails 2 or simply refrain from defining it if RailsTie is uninitialized?