Browse files

Fix bad assumption in BacktraceCleaner test [#3249 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent 51e1260 commit 77bb129fdb3b1da8365931a6313b5e7ef4c91de0 @ffmike ffmike committed with lifo Sep 23, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/backtrace_cleaner_test.rb
View
2 railties/test/backtrace_cleaner_test.rb
@@ -35,7 +35,7 @@ def setup
end
test "should format installed gems correctly" do
- @backtrace = [ "#{Gem.default_dir}/gems/nosuchgem-1.2.3/lib/foo.rb" ]
+ @backtrace = [ "#{Gem.path[0]}/gems/nosuchgem-1.2.3/lib/foo.rb" ]
@result = @cleaner.clean(@backtrace)
assert_equal "nosuchgem (1.2.3) lib/foo.rb", @result[0]
end

0 comments on commit 77bb129

Please sign in to comment.