Sha256: 17bd5398be579a7e5ed4c2e30847ad93f8317fe340ec0eb6cd46fffaca96c04a

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Rubocop::Cop::Style::Not do
  subject(:cop) { described_class.new }

  it 'registers an offense for not' do
    inspect_source(cop, 'not test')
    expect(cop.offenses.size).to eq(1)
  end

  it 'does not register an offense for !' do
    inspect_source(cop, '!test')
    expect(cop.offenses).to be_empty
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-0.19.1 spec/rubocop/cop/style/not_spec.rb
rubocop-0.19.0 spec/rubocop/cop/style/not_spec.rb