Sha256: 4fbf5ab1f079aae0ef527309be9841225db5203988f39c3bb2ea54a473a42884

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

require 'spec_helper'
require 'tmpdir'

describe '[fingerprint] subcommand' do
  before(:each) do
    @old_pwd = Dir.pwd
    @tmpdir = Dir.mktmpdir
    Dir.chdir(@tmpdir)
  end

  after(:each) do
    Dir.chdir(@old_pwd)
    FileUtils.rm_rf(@tmpdir)
  end

  it 'should create output tgz successfully' do
    run("#{perfmonger_bin} fingerprint output.tgz", 20)
    expect(last_command_started).to be_successfully_executed
    expect("output.tgz").to be_an_existing_file
  end

  it 'should create output tgz successfully with alias invocation' do
    run("#{perfmonger_bin} fp output.tgz", 20)
    expect(last_command_started).to be_successfully_executed
    expect("output.tgz").to be_an_existing_file
  end

  it "should create output tgz successfully with content" do
    run("#{perfmonger_bin} fingerprint output.tgz", 20)
    expect(last_command_started).to be_successfully_executed
    run("tar xf output.tgz")
    expect(last_command_started).to be_successfully_executed
    expect("output").to be_an_existing_directory
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
perfmonger-0.10.2 spec/fingerprint_spec.rb
perfmonger-0.10.1 spec/fingerprint_spec.rb
perfmonger-0.9.0 spec/fingerprint_spec.rb