Permalink
Browse files

Rails.root should be a Pathname

  • Loading branch information...
amatsuda committed Aug 26, 2014
1 parent bd2b3fb commit 357edaaf8309e5ebfd1b5bae7b7210cacc501c7b
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/generators/generators_test_helper.rb
@@ -7,7 +7,7 @@ module Rails
class << self
remove_possible_method :root
def root
- @root ||= File.expand_path('../../fixtures', __FILE__)
+ @root ||= Pathname.new(File.expand_path('../../fixtures', __FILE__))
end
end
end

0 comments on commit 357edaa

Please sign in to comment.