Sha256: 225942deb198b42a9950d7c49399ca4d464d68f8fa2002cbb2f7132e85fe2a17

Contents?: true

Size: 1.02 KB

Versions: 10

Compression:

Stored size: 1.02 KB

Contents

require 'spec_helper'
require 'tmpdir'

RSpec.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

10 entries across 10 versions & 1 rubygems

Version Path
perfmonger-0.14.4 spec/fingerprint_spec.rb
perfmonger-0.14.2 spec/fingerprint_spec.rb
perfmonger-0.14.1 spec/fingerprint_spec.rb
perfmonger-0.14.0 spec/fingerprint_spec.rb
perfmonger-0.13.1 spec/fingerprint_spec.rb
perfmonger-0.12.1 spec/fingerprint_spec.rb
perfmonger-0.12.0 spec/fingerprint_spec.rb
perfmonger-0.11.2 spec/fingerprint_spec.rb
perfmonger-0.11.1 spec/fingerprint_spec.rb
perfmonger-0.11.0 spec/fingerprint_spec.rb