Rails.root isn't always defined when you get to the top of a spec file

This commit is contained in:
Sarah Mei 2010-10-16 20:01:49 -07:00
parent e1d5f86f7e
commit 2ae05f39cd

View file

@ -2,7 +2,7 @@
# licensed under the Affero General Public License version 3 or later. See # licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file. # the COPYRIGHT file.
require File.join(Rails.root, "spec", "spec_helper") require File.join(File.dirname(__FILE__), "..", "spec_helper")
describe DevUtilitiesController do describe DevUtilitiesController do
render_views render_views