Sha256: 09dde8a13c0dda7f75423715ebf85dfbe770b30de2b29e02b530390c5ab98569
Contents?: true
Size: 665 Bytes
Versions: 5
Compression:
Stored size: 665 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module RSpec module Rails # @!parse # # Checks that tests use RSpec `before` hook over Rails `setup` # # method. # # # # @example # # # bad # # setup do # # allow(foo).to receive(:bar) # # end # # # # # good # # before do # # allow(foo).to receive(:bar) # # end # # # class AvoidSetupHook < RuboCop::Cop::RSpec::Base; end AvoidSetupHook = ::RuboCop::Cop::RSpecRails::AvoidSetupHook end end end end
Version data entries
5 entries across 5 versions & 1 rubygems