Sha256: 0f848f15dea08a02d7f252c84c2fcb93c5e17c7e38f5d631c4280dfcfbaa44bb
Contents?: true
Size: 469 Bytes
Versions: 5
Compression:
Stored size: 469 Bytes
Contents
# encoding: utf-8 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"], nil, nil) expect(tab.offences.size).to eq(1) end it 'accepts a line with tab in a string' do tab.inspect('file.rb', ["(x = \"\t\")"], nil, nil) expect(tab.offences).to be_empty end end end end
Version data entries
5 entries across 5 versions & 1 rubygems