#345: updated comments_controller_spec

This commit is contained in:
Vokhmin Alexey V 2014-03-19 03:00:29 +04:00
parent 36dd7b5e62
commit 50a301d2fa
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ module Feed::Issue
}
)
end
Comment.create_link_on_issues_from_item(self)
::Comment.create_link_on_issues_from_item(self)
end
def send_assign_notifications(action = :create)
@ -57,7 +57,7 @@ module Feed::Issue
)
end
# dont remove outdated issues link
Comment.create_link_on_issues_from_item(self) if previous_changes['title'].present? || previous_changes['body'].present?
::Comment.create_link_on_issues_from_item(self) if previous_changes['title'].present? || previous_changes['body'].present?
end
def send_hooks(action = :create)

View File

@ -13,7 +13,7 @@ shared_context "comments controller" do
set_session_for(@user)
@path = {owner_name: @project.owner.uname, project_name: @project.name, issue_id: @issue.serial_id}
@path = {owner_with_name: "#{@project.owner.uname}/#{@project.name}", issue_id: @issue.serial_id}
@return_path = project_issue_path(@project, @issue)
@create_params = {comment: {body: 'I am a comment!'}}.merge(@path)
@update_params = {comment: {body: 'updated'}}.merge(@path)