Sha256: ad52d49d36aed21e4a314bb5a5f0b682db19b1ce3be4f06a0c060fa65acbfe16

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 Bytes

Contents

require './lib/beanstalkify/archive'

describe Beanstalkify::Archive do
  archive = nil
  before do
    archive = Beanstalkify::Archive.new '/path/to/my/archive/app-name-version.zip'
  end

  it 'should store the path' do
    archive.path.should eq('/path/to/my/archive/app-name-version.zip')
  end

  it 'extracts the application name from the path' do
    archive.name.should eq('app-name')
  end

  it 'extracts the version from the path' do
    archive.version.should eq('version')
  end

  it 'returns the filename of the archive' do
    archive.filename.should eq('app-name-version.zip')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
beanstalkify-0.0.3 test/archive_spec.rb
beanstalkify-0.0.2 test/archive_spec.rb