diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/controllers/projects/mattermosts_controller_spec.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/controllers/projects/mattermosts_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/mattermosts_controller_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/projects/mattermosts_controller_spec.rb b/spec/controllers/projects/mattermosts_controller_spec.rb index 10bcee28f71..edec8c3e9c6 100644 --- a/spec/controllers/projects/mattermosts_controller_spec.rb +++ b/spec/controllers/projects/mattermosts_controller_spec.rb @@ -13,7 +13,7 @@ RSpec.describe Projects::MattermostsController do describe 'GET #new' do before do - allow_next_instance_of(MattermostSlashCommandsService) do |instance| + allow_next_instance_of(Integrations::MattermostSlashCommands) do |instance| allow(instance).to receive(:list_teams).and_return([]) end end @@ -43,7 +43,7 @@ RSpec.describe Projects::MattermostsController do context 'no request can be made to mattermost' do it 'shows the error' do - allow_next_instance_of(MattermostSlashCommandsService) do |instance| + allow_next_instance_of(Integrations::MattermostSlashCommands) do |instance| allow(instance).to receive(:configure).and_return([false, "error message"]) end @@ -53,7 +53,7 @@ RSpec.describe Projects::MattermostsController do context 'the request is succesull' do before do - allow_next_instance_of(Mattermost::Command) do |instance| + allow_next_instance_of(::Mattermost::Command) do |instance| allow(instance).to receive(:create).and_return('token') end end |