Sha256: 3cfc01337bc1f64c11af759b754c12b14d9bf08307a106bf3d02757f9eb204bd
Contents?: true
Size: 457 Bytes
Versions: 4
Compression:
Stored size: 457 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(["\tx = 0"], nil, nil, nil) expect(tab.offences.size).to eq(1) end it 'accepts a line with tab in a string' do tab.inspect(["(x = \"\t\")"], nil, nil, nil) expect(tab.offences).to be_empty end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.8.3 | spec/rubocop/cops/tab_spec.rb |
rubocop-0.8.2 | spec/rubocop/cops/tab_spec.rb |
rubocop-0.8.1 | spec/rubocop/cops/tab_spec.rb |
rubocop-0.8.0 | spec/rubocop/cops/tab_spec.rb |