#345: updated comments_controller_for_commit_spec

This commit is contained in:
Vokhmin Alexey V 2014-03-19 03:02:21 +04:00
parent 50a301d2fa
commit b08881db50
1 changed files with 3 additions and 3 deletions

View File

@ -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