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

Version Path
karl-loris-0.0.10 spec/filters/ends_with_filter_spec.rb
karl-loris-0.0.11 spec/filters/ends_with_filter_spec.rb
karl-loris-0.0.9 spec/filters/ends_with_filter_spec.rb
loris-0.5.2 spec/filters/ends_with_filter_spec.rb
loris-0.5.1 spec/filters/ends_with_filter_spec.rb
loris-0.5.0 spec/filters/ends_with_filter_spec.rb
loris-0.4.1 spec/filters/ends_with_filter_spec.rb
loris-0.4.0 spec/filters/ends_with_filter_spec.rb
loris-0.3.2 spec/filters/ends_with_filter_spec.rb
loris-0.3.1 spec/filters/ends_with_filter_spec.rb
loris-0.3.0 spec/filters/ends_with_filter_spec.rb
loris-0.2.3 spec/filters/ends_with_filter_spec.rb
loris-0.2.2 spec/filters/ends_with_filter_spec.rb
loris-0.2.1 spec/filters/ends_with_filter_spec.rb
loris-0.2.0 spec/filters/ends_with_filter_spec.rb
loris-0.1.7 spec/filters/ends_with_filter_spec.rb
loris-0.1.5 spec/filters/ends_with_filter_spec.rb
loris-0.1.4 spec/filters/ends_with_filter_spec.rb
loris-0.1.3 spec/filters/ends_with_filter_spec.rb
loris-0.1.2 spec/filters/ends_with_filter_spec.rb