Sha256: 17195e4da119e81c1b54544babccc248ac6d475b7702d3065e4ccc16a9caf4e7
Contents?: true
Size: 731 Bytes
Versions: 8
Compression:
Stored size: 731 Bytes
Contents
require 'spec_helper' describe Codeqa::Checkers::CheckPry do it_behaves_like 'a checker' it 'should check ruby files' do source = source_with('', 'file.rb') expect(described_class.check?(source)).to be_truthy source = source_with('', 'zipped.zip') expect(described_class.check?(source)).to be_falsey end it 'should detect binding pry' do source = source_with("first line\nbinding.pry\nthirdline", 'file.rb') checker = check_with(described_class, source) expect(checker).to be_error end it 'should be success is all is finde ' do source = source_with("first line\nthirdline\n", 'file.rb') checker = check_with(described_class, source) expect(checker).to be_success end end
Version data entries
8 entries across 8 versions & 1 rubygems