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