##// END OF EJS Templates
Fixes odd test failures....
Jean-Philippe Lang -
r3098:3b7e7be72aa2
parent child
Show More
@@ -805,7 +805,7 class IssuesControllerTest < ActionController::TestCase
805 805 assert_redirected_to :action => 'show', :id => '1'
806 806 issue.reload
807 807 assert_equal 2, issue.status_id
808 j = issue.journals.find(:first, :order => 'id DESC')
808 j = Journal.find(:first, :order => 'id DESC')
809 809 assert_equal 'Assigned to dlopper', j.notes
810 810 assert_equal 2, j.details.size
811 811
@@ -822,7 +822,7 class IssuesControllerTest < ActionController::TestCase
822 822 :id => 1,
823 823 :notes => notes
824 824 assert_redirected_to :action => 'show', :id => '1'
825 j = Issue.find(1).journals.find(:first, :order => 'id DESC')
825 j = Journal.find(:first, :order => 'id DESC')
826 826 assert_equal notes, j.notes
827 827 assert_equal 0, j.details.size
828 828 assert_equal User.anonymous, j.user
@@ -844,7 +844,7 class IssuesControllerTest < ActionController::TestCase
844 844
845 845 issue = Issue.find(1)
846 846
847 j = issue.journals.find(:first, :order => 'id DESC')
847 j = Journal.find(:first, :order => 'id DESC')
848 848 assert_equal '2.5 hours added', j.notes
849 849 assert_equal 0, j.details.size
850 850
General Comments 0
You need to be logged in to leave comments. Login now