diff --git a/spec/controllers/comments_controller_spec.rb b/spec/controllers/comments_controller_spec.rb index c93ac57f0..03d2813a5 100644 --- a/spec/controllers/comments_controller_spec.rb +++ b/spec/controllers/comments_controller_spec.rb @@ -77,8 +77,8 @@ describe CommentsController do @issue = Factory(:issue, :project_id => @project.id) @comment = Factory(:comment, :commentable => @issue) - @create_params = {:comment => {:body => 'I am a comment!'}, :project_id => @project.id, :issue_id => @issue.id} - @update_params = {:comment => {:body => 'updated'}, :project_id => @project.id, :issue_id => @issue.id} + @create_params = {:comment => {:body => 'I am a comment!'}, :project_id => @project.id, :issue_id => @issue.serial_id} + @update_params = {:comment => {:body => 'updated'}, :project_id => @project.id, :issue_id => @issue.serial_id} any_instance_of(Project, :versions => ['v1.0', 'v2.0'])