Sha256: 0fcec816a7e2ae32e897e85792ddf0c818a02993c023b2b6a00a2c1c8260ce2c
Contents?: true
Size: 398 Bytes
Versions: 6
Compression:
Stored size: 398 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Rubocop::Cop::Style::Tab do subject(:cop) { described_class.new } it 'registers an offense for a line indented with tab' do inspect_source(cop, ["\tx = 0"]) expect(cop.offenses.size).to eq(1) end it 'accepts a line with tab in a string' do inspect_source(cop, ["(x = \"\t\")"]) expect(cop.offenses).to be_empty end end
Version data entries
6 entries across 6 versions & 1 rubygems