summaryrefslogtreecommitdiffstats
path: root/test/unit/tracker_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-12 21:36:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-12 21:36:14 +0000
commit3186130966cea85d842faf5c038006f8fb40bb61 (patch)
treee9ae3a958e9ad9458dec590ea59fb7bc7c0fe8cd /test/unit/tracker_test.rb
parent167a4b8005e8e85c393a047756fbc70140d92047 (diff)
downloadredmine-3186130966cea85d842faf5c038006f8fb40bb61.tar.gz
redmine-3186130966cea85d842faf5c038006f8fb40bb61.zip
Don't use assert_equal nil.
git-svn-id: http://svn.redmine.org/redmine/trunk@16064 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/tracker_test.rb')
-rw-r--r--test/unit/tracker_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/tracker_test.rb b/test/unit/tracker_test.rb
index 85d775459..ad842a753 100644
--- a/test/unit/tracker_test.rb
+++ b/test/unit/tracker_test.rb
@@ -25,7 +25,7 @@ class TrackerTest < ActiveSupport::TestCase
end
def test_named_scope
- assert_equal Tracker.find_by_name('Feature'), Tracker.named('feature').first
+ assert_equal Tracker.find(2), Tracker.named('feature request').first
end
def test_visible_scope_chained_with_project_rolled_up_trackers