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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-01 06:10:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-01 06:10:06 +0300
commitf5823d9c245c6186ac27265af22927bda40f33f7 (patch)
treea0dbad34c05e495b55264a5d4c5ed09d3fdfbdf9 /spec/lib/mattermost/client_spec.rb
parent65340d918f4020d29cba05e0d91e6e44fff6092a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/mattermost/client_spec.rb')
-rw-r--r--spec/lib/mattermost/client_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/mattermost/client_spec.rb b/spec/lib/mattermost/client_spec.rb
index 32755d1103c..5d57a226baf 100644
--- a/spec/lib/mattermost/client_spec.rb
+++ b/spec/lib/mattermost/client_spec.rb
@@ -14,13 +14,13 @@ RSpec.describe Mattermost::Client do
it 'yields an error on malformed JSON' do
bad_json = Struct::Request.new("I'm not json", true)
- expect { subject.send(:json_response, bad_json) }.to raise_error(Mattermost::ClientError)
+ expect { subject.send(:json_response, bad_json) }.to raise_error(::Mattermost::ClientError)
end
it 'shows a client error if the request was unsuccessful' do
bad_request = Struct::Request.new("true", false)
- expect { subject.send(:json_response, bad_request) }.to raise_error(Mattermost::ClientError)
+ expect { subject.send(:json_response, bad_request) }.to raise_error(::Mattermost::ClientError)
end
end
end