Skip to content

Commit

Permalink
fixed test regression for 2.0 Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Guymon committed Jun 27, 2011
1 parent 6b306bb commit 6fd3a17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/new_relic/control/configuration_test.rb
Expand Up @@ -13,7 +13,8 @@ def test_license_key_defaults_to_env_variable
end

def test_log_file_path_uses_default_if_not_set
assert_equal(File.join(Rails.root, 'log'),
root = ::Rails::VERSION::MAJOR == 3 ? Rails.root : RAILS_ROOT
assert_equal(File.join(root, 'log'),
NewRelic::Control.instance.log_file_path)
end

Expand Down

0 comments on commit 6fd3a17

Please sign in to comment.