Sha256: b6aa9b2da506125d8b8e95d9229b93d44913bd04717499b282bbd86e13335020

Contents?: true

Size: 607 Bytes

Versions: 13

Compression:

Stored size: 607 Bytes

Contents

require 'spec_helper'

describe 'CLI', 'appraisal list' do
  it 'prints list of appraisals' do
    build_appraisal_file <<-Appraisal
      appraise '1.0.0' do
        gem 'dummy', '1.0.0'
      end
      appraise '2.0.0' do
        gem 'dummy', '1.0.0'
      end
      appraise '1.1.0' do
        gem 'dummy', '1.0.0'
      end
    Appraisal

    output = run 'appraisal list'

    expect(output).to eq("1.0.0\n2.0.0\n1.1.0\n")
  end

  it 'prints nothing if there are no appraisals in the file' do
    build_appraisal_file ''
    output = run 'appraisal list'

    expect(output.length).to eq(0)
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

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