Sha256: d36d16371fcf2a257fec6435805e8687ab375537f0819416224152ee5461914f
Contents?: true
Size: 467 Bytes
Versions: 8
Compression:
Stored size: 467 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', [%Q(x = "\t")], nil, nil) expect(tab.offences).to be_empty end end end end
Version data entries
8 entries across 8 versions & 1 rubygems