Sha256: 154d8fe2365bd545bd088bad4127cdf42fc6762495af44262af996a2799ec3c5

Contents?: true

Size: 526 Bytes

Versions: 19

Compression:

Stored size: 526 Bytes

Contents

require 'spec_helper'

describe 'CLI', 'appraisal clean' do
  it 'remove all gemfiles from gemfiles directory' do
    build_appraisal_file <<-Appraisal
      appraise '1.0.0' do
        gem 'dummy', '1.0.0'
      end
    Appraisal

    run 'appraisal install'
    write_file 'gemfiles/non_related_file', ''

    run 'appraisal clean'

    expect(file 'gemfiles/1.0.0.gemfile').not_to be_exists
    expect(file 'gemfiles/1.0.0.gemfile.lock').not_to be_exists
    expect(file 'gemfiles/non_related_file').to be_exists
  end
end

Version data entries

19 entries across 17 versions & 3 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/spec/acceptance/cli/clean_spec.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/spec/acceptance/cli/clean_spec.rb
appraisal-2.5.0 spec/acceptance/cli/clean_spec.rb
appraisal-2.4.1 spec/acceptance/cli/clean_spec.rb
appraisal-2.4.0 spec/acceptance/cli/clean_spec.rb
appraisal-2.3.0 spec/acceptance/cli/clean_spec.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/appraisal-2.2.0/spec/acceptance/cli/clean_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/appraisal-2.2.0/spec/acceptance/cli/clean_spec.rb
appraisal-2.2.0 spec/acceptance/cli/clean_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/appraisal-1.0.2/spec/acceptance/cli/clean_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/appraisal-1.0.2/spec/acceptance/cli/clean_spec.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/appraisal-1.0.2/spec/acceptance/cli/clean_spec.rb
appraisal-2.1.0 spec/acceptance/cli/clean_spec.rb
appraisal-2.0.2 spec/acceptance/cli/clean_spec.rb
appraisal-2.0.1 spec/acceptance/cli/clean_spec.rb
appraisal-2.0.0 spec/acceptance/cli/clean_spec.rb
appraisal-1.0.3 spec/acceptance/cli/clean_spec.rb
appraisal-1.0.2 spec/acceptance/cli/clean_spec.rb
appraisal-1.0.0 spec/acceptance/cli/clean_spec.rb