Permalink
Browse files

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

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent eb30c69 commit 9edfdef2a7c0c36b84b0f0bcd591e0c123351866 @ffmike ffmike committed with lifo Sep 23, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/test/backtrace_cleaner_test.rb
@@ -37,7 +37,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 9edfdef

Please sign in to comment.