Sha256: bc46b4f1090a3c63fae6f0d5fdc797c4e877618c645ce083a64cda3b39215475
Contents?: true
Size: 400 Bytes
Versions: 2
Compression:
Stored size: 400 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Style describe OneLineConditional do subject(:olc) { OneLineConditional.new } it 'registers an offence for one line if/then/end' do inspect_source(olc, ['if cond then run else dont end']) expect(olc.messages).to eq([olc.error_message]) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.13.1 | spec/rubocop/cop/style/one_line_conditional_spec.rb |
rubocop-0.13.0 | spec/rubocop/cop/style/one_line_conditional_spec.rb |