Sha256: 27d160e4aac7a831e9b91a68fe4a427ad4390f14eff120b9c7c6fca37e2001e5
Contents?: true
Size: 579 Bytes
Versions: 6
Compression:
Stored size: 579 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Style describe MethodCallParentheses do let(:cop) { MethodCallParentheses.new } it 'registers an offence for parens in method call without args' do inspect_source(cop, ['top.test()']) end it 'it accepts no parens in method call without args' do inspect_source(cop, ['top.test']) end it 'it accepts parens in method call with args' do inspect_source(cop, ['top.test(a)']) end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems