Commit cce5ca05 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'issue#220040-fix-rails-savebang-mattermost-module' into 'master'

Fix Rails/SaveBang Rubocop offenses for mattermost modules

See merge request gitlab-org/gitlab!58048
parents 125a909a 3ed90e3a
...@@ -281,9 +281,6 @@ Rails/SaveBang: ...@@ -281,9 +281,6 @@ Rails/SaveBang:
- 'spec/lib/gitlab/lets_encrypt/client_spec.rb' - 'spec/lib/gitlab/lets_encrypt/client_spec.rb'
- 'spec/lib/gitlab/middleware/go_spec.rb' - 'spec/lib/gitlab/middleware/go_spec.rb'
- 'spec/lib/gitlab/shard_health_cache_spec.rb' - 'spec/lib/gitlab/shard_health_cache_spec.rb'
- 'spec/lib/mattermost/command_spec.rb'
- 'spec/lib/mattermost/session_spec.rb'
- 'spec/lib/mattermost/team_spec.rb'
- 'spec/mailers/notify_spec.rb' - 'spec/mailers/notify_spec.rb'
- 'spec/models/appearance_spec.rb' - 'spec/models/appearance_spec.rb'
- 'spec/models/application_record_spec.rb' - 'spec/models/application_record_spec.rb'
......
---
title: Fix Rails/SaveBang Rubocop offenses for mattermost modules
merge_request: 58048
author: Huzaifa Iftikhar @huzaifaiftikhar
type: fixed
...@@ -19,7 +19,7 @@ RSpec.describe Mattermost::Command do ...@@ -19,7 +19,7 @@ RSpec.describe Mattermost::Command do
trigger: 'gitlab' } trigger: 'gitlab' }
end end
subject { described_class.new(nil).create(params) } subject { described_class.new(nil).create(params) } # rubocop:disable Rails/SaveBang
context 'for valid trigger word' do context 'for valid trigger word' do
before do before do
......
...@@ -39,7 +39,7 @@ RSpec.describe Mattermost::Session, type: :request do ...@@ -39,7 +39,7 @@ RSpec.describe Mattermost::Session, type: :request do
context 'with oauth_uri' do context 'with oauth_uri' do
let!(:doorkeeper) do let!(:doorkeeper) do
Doorkeeper::Application.create( Doorkeeper::Application.create!(
name: 'GitLab Mattermost', name: 'GitLab Mattermost',
redirect_uri: "#{mattermost_url}/signup/gitlab/complete\n#{mattermost_url}/login/gitlab/complete", redirect_uri: "#{mattermost_url}/signup/gitlab/complete\n#{mattermost_url}/login/gitlab/complete",
scopes: '') scopes: '')
......
...@@ -71,7 +71,7 @@ RSpec.describe Mattermost::Team do ...@@ -71,7 +71,7 @@ RSpec.describe Mattermost::Team do
end end
describe '#create' do describe '#create' do
subject { described_class.new(nil).create(name: "devteam", display_name: "Dev Team", type: "O") } subject { described_class.new(nil).create(name: "devteam", display_name: "Dev Team", type: "O") } # rubocop:disable Rails/SaveBang
context 'for a new team' do context 'for a new team' do
let(:response) do let(:response) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment