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:
parent
e1ad07190e
commit
83ead25229
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
require "commands"
|
require "commands"
|
||||||
|
|
||||||
RSpec.shared_context "with custom internal commands" do
|
RSpec.shared_context "custom internal commands" do # rubocop:disable RSpec/ContextWording
|
||||||
let(:cmds) do
|
let(:cmds) do
|
||||||
[
|
[
|
||||||
# internal commands
|
# internal commands
|
||||||
|
@ -31,7 +31,7 @@ module Cask
|
|||||||
end
|
end
|
||||||
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|
|
around do |example|
|
||||||
third_party_tap = Tap.fetch("third-party", "tap")
|
third_party_tap = Tap.fetch("third-party", "tap")
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ require "formula_installer"
|
|||||||
|
|
||||||
RSpec::Matchers.define_negated_matcher :be_a_failure, :be_a_success
|
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
|
extend RSpec::Matchers::DSL
|
||||||
|
|
||||||
matcher :be_a_success do
|
matcher :be_a_success do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user