Sha256: d49e25b40869f6263738ffb83a74d1351086b84035d815fe27b6db1d942cf691
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
require 'spec_helper' module Rubocop module Cop describe Tab do let (:tab) { Tab.new } it 'registers an offence for a line indented with tab' do tab.inspect('file.rb', ["\tx = 0"]) tab.offences.size.should == 1 end it 'accepts a line with tab in a string' do tab.inspect('file.rb', [%Q(x = "\t")]) tab.offences.size.should == 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.1.0 | spec/rubocop/cops/tab_spec.rb |