Sha256: 5ed3514492bd85ec321aa8941c8f90a9e8264063771fd61822ece0dfbf7f6f7e

Contents?: true

Size: 810 Bytes

Versions: 13

Compression:

Stored size: 810 Bytes

Contents

require 'spec_helper'

describe 'CLI', 'appraisal generate' do
  it 'generates the gemfiles' do
    build_gemfile <<-Gemfile
      source "https://rubygems.org"

      gem "appraisal", :path => "#{PROJECT_ROOT}"
    Gemfile

    build_appraisal_file <<-Appraisal
      appraise '1.0.0' do
        gem 'dummy', '1.0.0'
      end

      appraise '1.1.0' do
        gem 'dummy', '1.1.0'
      end
    Appraisal

    run 'appraisal generate'

    expect(file 'gemfiles/1.0.0.gemfile').to be_exists
    expect(file 'gemfiles/1.1.0.gemfile').to be_exists
    expect(content_of 'gemfiles/1.0.0.gemfile').to eq <<-gemfile.strip_heredoc
      # This file was generated by Appraisal

      source "https://rubygems.org"

      gem "appraisal", :path => "#{PROJECT_ROOT}"
      gem "dummy", "1.0.0"
    gemfile
  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/generate_spec.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/spec/acceptance/cli/generate_spec.rb
appraisal-2.5.0 spec/acceptance/cli/generate_spec.rb
appraisal-2.4.1 spec/acceptance/cli/generate_spec.rb
appraisal-2.4.0 spec/acceptance/cli/generate_spec.rb
appraisal-2.3.0 spec/acceptance/cli/generate_spec.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/appraisal-2.2.0/spec/acceptance/cli/generate_spec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/appraisal-2.2.0/spec/acceptance/cli/generate_spec.rb
appraisal-2.2.0 spec/acceptance/cli/generate_spec.rb
appraisal-2.1.0 spec/acceptance/cli/generate_spec.rb
appraisal-2.0.2 spec/acceptance/cli/generate_spec.rb
appraisal-2.0.1 spec/acceptance/cli/generate_spec.rb
appraisal-2.0.0 spec/acceptance/cli/generate_spec.rb