Sha256: 592d682f0740a28496ffe30b31b25fccf44a450537bde77b5628c2b25bc68bc9
Contents?: true
Size: 654 Bytes
Versions: 26
Compression:
Stored size: 654 Bytes
Contents
require 'lib/filters/ends_with_filter' describe EndsWithFilter do before do end it 'should return true if ends with text' do @path = '/path/to/file_spec.rb' filter = EndsWithFilter.new('_spec.rb') filter.filter(@path).should be_true end it 'should return true if ends with text in a different case' do @path = '/path/to/file_Spec.RB' filter = EndsWithFilter.new('_spec.rb') filter.filter(@path).should be_true end it 'should return false if does not end with text' do @path = '/path/to/file_spec.rbx' filter = EndsWithFilter.new('_spec.rb') filter.filter(@path).should be_false end end
Version data entries
26 entries across 26 versions & 2 rubygems