Sha256: 777cb671f9268748e6335db6640d9f5b11716480f855e039cc1cb69efe114c22

Contents?: true

Size: 449 Bytes

Versions: 14

Compression:

Stored size: 449 Bytes

Contents

require File.expand_path('spec_helper', File.dirname(__FILE__))

module Ftpd
  describe ListPath do

    include ListPath

    it 'should replace a missing path with "."' do
      expect(list_path(nil)).to eq('.')
    end

    it 'should replace a switch with nothing' do
      expect(list_path('-a')).to eq('')
    end

    it 'should preserve a filename with a dash in it' do
      expect(list_path('foo-bar')).to eq('foo-bar')
    end

  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ftpd-1.1.1 spec/list_path_spec.rb
ftpd-1.1.0 spec/list_path_spec.rb
investtools-ftpd-1.0.1 spec/list_path_spec.rb
ftpd-1.0.1 spec/list_path_spec.rb
ftpd-1.0.0 spec/list_path_spec.rb
ftpd-0.17.0 spec/list_path_spec.rb
ftpd-0.16.0 spec/list_path_spec.rb
ftpd-0.15.0 spec/list_path_spec.rb
ftpd-0.14.0 spec/list_path_spec.rb
ftpd-0.13.0 spec/list_path_spec.rb
ftpd-0.12.0 spec/list_path_spec.rb
ftpd-0.11.0 spec/list_path_spec.rb
ftpd-0.10.0 spec/list_path_spec.rb
ftpd-0.9.0 spec/list_path_spec.rb