Browse files

Use Rails.root instead of RAILS_ROOT.

  • Loading branch information...
1 parent c2786bb commit eeef98dd7200d3a4a1ab51745abc44d10ae38d5b @ngty committed Nov 9, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/generators/cross_stub/templates/features/support/cross-stub.rb
View
2 lib/generators/cross_stub/templates/features/support/cross-stub.rb
@@ -9,7 +9,7 @@
# /////////////////////////////////////////////////////////////////////////////////
#CrossStub.setup :redis => 'localhost:6379/xstub.cache' # requires *redis* gem
#CrossStub.setup :memcache => 'localhost:11211/xstub.cache' # requires *memcache-client* gem
- CrossStub.setup :file => File.join(RAILS_ROOT, 'tmp', 'xstub.cache')
+ CrossStub.setup :file => Rails.root.join('tmp', 'xstub.cache')
end
After do

0 comments on commit eeef98d

Please sign in to comment.