From 68744b16763102eef86ceef47a989a316c4b12bb Mon Sep 17 00:00:00 2001 From: Vladimir Sharshov Date: Tue, 17 Jan 2012 01:07:48 +0400 Subject: [PATCH] Fix broken tests in #94 from pull request #92 --- spec/controllers/comments_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'])