Sha256: 3613800b16800853d234fa182abbe22cc6726a60ea23a0b29940eb022faec326
Contents?: true
Size: 385 Bytes
Versions: 3
Compression:
Stored size: 385 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop describe SpaceAfterComma do let (:space) { SpaceAfterComma.new } it 'registers an offence for block argument commas' do inspect_source(space, 'file.rb', ['each { |s,t| }']) space.offences.map(&:message).should == ['Space missing after comma.'] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.3.2 | spec/rubocop/cops/space_after_comma_spec.rb |
rubocop-0.3.1 | spec/rubocop/cops/space_after_comma_spec.rb |
rubocop-0.3.0 | spec/rubocop/cops/space_after_comma_spec.rb |