Sha256: d2a2a5e0d3f7f87c52f0b6ee1b8b0acdb998aaf537b69a16690008491fd784ba
Contents?: true
Size: 863 Bytes
Versions: 2
Compression:
Stored size: 863 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Style describe SpaceAfterComma do subject(:space) { SpaceAfterComma.new } it 'registers an offence for block argument commas without space' do inspect_source(space, ['each { |s,t| }']) expect(space.messages).to eq( ['Space missing after comma.']) end it 'registers an offence for array index commas without space' do inspect_source(space, ['formats[0,1]']) expect(space.messages).to eq( ['Space missing after comma.']) end it 'registers an offence for method call arg commas without space' do inspect_source(space, ['a(1,2)']) expect(space.messages).to eq( ['Space missing after comma.']) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.13.1 | spec/rubocop/cop/style/space_after_comma_spec.rb |
rubocop-0.13.0 | spec/rubocop/cop/style/space_after_comma_spec.rb |