提交 85efa3a2 编写于 作者: M Matthew Draper

Prevent a redefinition warning when the real Rails.root appears

上级 4cfcf1ee
......@@ -7,11 +7,12 @@
require "rails/test_unit/line_filtering"
require "active_support/test_case"
module Rails
class << Rails
# Necessary to get rerun-snippts working.
def self.root
def root
@root ||= Pathname.new(COMPONENT_ROOT)
end
alias __root root
end
ActiveSupport::TestCase.extend Rails::LineFiltering
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册