Sha256: dacd8124fc36ff7b917050debc0928fe2143aa616350016c2f24cf984fa07b20

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true

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

2 entries across 2 versions & 1 rubygems

Version Path
ftpd-2.0.1 spec/list_path_spec.rb
ftpd-2.0.0 spec/list_path_spec.rb