Sha256: 6df0d666106d162462d2eff28df41423e52dc3d5b58482a3986e4f8b1c29c3a9

Contents?: true

Size: 334 Bytes

Versions: 7

Compression:

Stored size: 334 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

module Rubocop
  module Cop
    module Style
      describe CaseEquality do
        let(:ce) { CaseEquality.new }

        it 'registers an offence for ===' do
          inspect_source(ce, ['Array === var'])
          expect(ce.offences.size).to eq(1)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
rubocop-0.12.0 spec/rubocop/cop/style/case_equality_spec.rb
rubocop-0.11.1 spec/rubocop/cop/style/case_equality_spec.rb
rubocop-0.11.0 spec/rubocop/cops/style/case_equality_spec.rb
rubocop-0.10.0 spec/rubocop/cops/style/case_equality_spec.rb
rubocop-0.9.1 spec/rubocop/cops/style/case_equality_spec.rb
sabat-rubocop-0.9.0 spec/rubocop/cops/style/case_equality_spec.rb
rubocop-0.9.0 spec/rubocop/cops/style/case_equality_spec.rb