Class: Nucop::NoWipSpecs

Inherits:
RuboCop::Cop::Base
  • Object
show all
Defined in:
lib/nucop/cops/no_wip_specs.rb

Overview

This cop looks for WIP specs

Examples:


# bad

it "tests some stuff", :wip do
  # ...
end

# good

it "tests some stuff" do
  # ...
end

Constant Summary collapse

MSG =
"WIP spec found".freeze

Instance Method Summary collapse

Instance Method Details

#on_send(node) ⇒ Object



29
30
31
32
33
# File 'lib/nucop/cops/no_wip_specs.rb', line 29

def on_send(node)
  return unless wip_it_specs_present?(node) || wip_describe_specs_present?(node)

  add_offense(node)
end