From b08881db5080e3793d957561bf118d5ec654e6e2 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Wed, 19 Mar 2014 03:02:21 +0400 Subject: [PATCH] #345: updated comments_controller_for_commit_spec --- .../projects/comments_controller_for_commit_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/controllers/projects/comments_controller_for_commit_spec.rb b/spec/controllers/projects/comments_controller_for_commit_spec.rb index c45e31a1d..0f3c30cf7 100644 --- a/spec/controllers/projects/comments_controller_for_commit_spec.rb +++ b/spec/controllers/projects/comments_controller_for_commit_spec.rb @@ -6,15 +6,15 @@ describe Projects::CommentsController do @project = FactoryGirl.create(:project_with_commit) @commit = @project.repo.commits.first - @create_params = {comment: {body: 'I am a comment!'}, owner_name: @project.owner.uname, project_name: @project.name, commit_id: @commit.id} - @update_params = {comment: {body: 'updated'}, owner_name: @project.owner.uname, project_name: @project.name, commit_id: @commit.id} + @create_params = {comment: {body: 'I am a comment!'}, owner_with_name: "#{@project.owner.uname}/#{@project.name}", commit_id: @commit.id} + @update_params = {comment: {body: 'updated'}, owner_with_name: "#{@project.owner.uname}/#{@project.name}", commit_id: @commit.id} any_instance_of(Project, versions: ['v1.0', 'v2.0']) @comment = FactoryGirl.create(:comment, commentable: @commit, project: @project) @user = FactoryGirl.create(:user) @own_comment = FactoryGirl.create(:comment, commentable: @commit, user: @user, project: @project) set_session_for(@user) - @path = {owner_name: @project.owner.uname, project_name: @project.name, commit_id: @commit.id} + @path = {owner_with_name: "#{@project.owner.uname}/#{@project.name}", commit_id: @commit.id} @return_path = commit_path(@project, @commit.id) end