rubocop: Disable RSpec/ContextWording for shared_context descs

- I couldn't figure out a way to start these with "when", "with" or
  "without" given where these are in cop descriptions. Three ignored
  things out of 150 problems is a good ratio though.
This commit is contained in:
Issy Long 2021-02-19 23:25:10 +00:00
parent e1ad07190e
commit 83ead25229
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
require "commands"
RSpec.shared_context "with custom internal commands" do
RSpec.shared_context "custom internal commands" do # rubocop:disable RSpec/ContextWording
let(:cmds) do
[
# internal commands

View File

@ -31,7 +31,7 @@ module Cask
end
end
RSpec.shared_context "Homebrew Cask", :needs_macos do
RSpec.shared_context "Homebrew Cask", :needs_macos do # rubocop:disable RSpec/ContextWording
around do |example|
third_party_tap = Tap.fetch("third-party", "tap")

View File

@ -7,7 +7,7 @@ require "formula_installer"
RSpec::Matchers.define_negated_matcher :be_a_failure, :be_a_success
RSpec.shared_context "integration test" do
RSpec.shared_context "integration test" do # rubocop:disable RSpec/ContextWording
extend RSpec::Matchers::DSL
matcher :be_a_success do