Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/channels/issues_channel_spec.rb')
-rw-r--r--spec/channels/issues_channel_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/channels/issues_channel_spec.rb b/spec/channels/issues_channel_spec.rb
index 1c88cc73456..4c860402f03 100644
--- a/spec/channels/issues_channel_spec.rb
+++ b/spec/channels/issues_channel_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-describe IssuesChannel do
+RSpec.describe IssuesChannel do
let_it_be(:issue) { create(:issue) }
it 'rejects when project path is invalid' do
@@ -18,7 +18,7 @@ describe IssuesChannel do
end
it 'rejects when the user does not have access' do
- stub_connection current_user: nil
+ stub_action_cable_connection current_user: nil
subscribe(project_path: issue.project.full_path, iid: issue.iid)
@@ -26,7 +26,7 @@ describe IssuesChannel do
end
it 'subscribes to a stream when the user has access' do
- stub_connection current_user: issue.author
+ stub_action_cable_connection current_user: issue.author
subscribe(project_path: issue.project.full_path, iid: issue.iid)