Sha256: f7ef450fe0e0e6665a61e35d4e585bf4c7e4dc24fd26c14c5608d5b5f0b0f472

Contents?: true

Size: 870 Bytes

Versions: 5

Compression:

Stored size: 870 Bytes

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)
    assert_success(true)
    check_file_presence("output.tgz")
  end

  it 'should create output tgz successfully with alias invocation' do
    run("#{perfmonger_bin} fp output.tgz", 20)
    assert_success(true)
    check_file_presence("output.tgz")
  end

  it "should create output tgz successfully with content" do
    run("#{perfmonger_bin} fingerprint output.tgz", 20)
    assert_success(true)
    run("tar xf output.tgz")
    assert_success(true)
    check_directory_presence(["output"], true)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
perfmonger-0.8.2 spec/fingerprint_spec.rb
perfmonger-0.8.1 spec/fingerprint_spec.rb
perfmonger-0.8.0 spec/fingerprint_spec.rb
perfmonger-0.7.1 spec/fingerprint_spec.rb
perfmonger-0.7.0 spec/fingerprint_spec.rb