@@ -1111,6 +1111,10 class IssuesControllerTest < ActionController::TestCase | |||
|
1111 | 1111 | end |
|
1112 | 1112 | |
|
1113 | 1113 | should "allow changing the issue's attributes" do |
|
1114 | # Fixes random test failure with Mysql | |
|
1115 | # where Issue.all(:limit => 2, :order => 'id desc', :conditions => {:project_id => 2}) doesn't return the expected results | |
|
1116 | Issue.delete_all("project_id=2") | |
|
1117 | ||
|
1114 | 1118 | @request.session[:user_id] = 2 |
|
1115 | 1119 | assert_difference 'Issue.count', 2 do |
|
1116 | 1120 | assert_no_difference 'Project.find(1).issues.count' do |
General Comments 0
You need to be logged in to leave comments.
Login now