Sha256: 64825d85caf4b961db6d749b2645b2a8b2be9c26f09f2e33996c57d6db03eacb
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
describe RuboCop::Cop::RSpec::AroundBlock do subject(:cop) { described_class.new } it 'finds `around` block without block arguments' do expect_violation(<<-RUBY) around do ^^^^^^^^^ Test object should be passed to around block do_something end RUBY end it 'finds `around` block with unused argument' do expect_violation(<<-RUBY) around do |test| ^^^^ You should call `test.call` or `test.run` do_something end RUBY end it 'checks the first argument of the block' do expect_violation(<<-RUBY) around do |test, unused| ^^^^ You should call `test.call` or `test.run` unused.run end RUBY end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-rspec-1.12.0 | spec/rubocop/cop/rspec/around_block_spec.rb |
rubocop-rspec-1.11.0 | spec/rubocop/cop/rspec/around_block_spec.rb |