diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2009-09-23 06:41:22 -0500 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-10-18 17:17:09 -0200 |
commit | 77bb129fdb3b1da8365931a6313b5e7ef4c91de0 (patch) | |
tree | 4a9617d9b5c705e8ae1aca9c2e14946c10c0085a /railties | |
parent | 51e1260b182b7fd5fda0c3f6b97bb166a578d0e6 (diff) | |
download | rails-77bb129fdb3b1da8365931a6313b5e7ef4c91de0.tar.gz rails-77bb129fdb3b1da8365931a6313b5e7ef4c91de0.tar.bz2 rails-77bb129fdb3b1da8365931a6313b5e7ef4c91de0.zip |
Fix bad assumption in BacktraceCleaner test [#3249 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/backtrace_cleaner_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/backtrace_cleaner_test.rb b/railties/test/backtrace_cleaner_test.rb index 0319d5f38c..64a47712b7 100644 --- a/railties/test/backtrace_cleaner_test.rb +++ b/railties/test/backtrace_cleaner_test.rb @@ -35,7 +35,7 @@ class BacktraceCleanerVendorGemTest < ActiveSupport::TestCase 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 |