Sha256: 7f20b1b085bf3e367f178de56950178459c18df87503f6024c64ff49bbd2013b
Contents?: true
Size: 1.02 KB
Versions: 10
Compression:
Stored size: 1.02 KB
Contents
require 'spec_helper' describe 'CLI', 'appraisal update' do before do build_gem 'dummy2', '1.0.0' build_appraisal_file <<-Appraisal appraise 'dummy' do gem 'dummy', '~> 1.0.0' gem 'dummy2', '~> 1.0.0' end Appraisal run 'appraisal install' build_gem 'dummy', '1.0.1' build_gem 'dummy2', '1.0.1' end after do in_test_directory do `gem uninstall dummy -v 1.0.1` `gem uninstall dummy2 -a` end end context 'with no arguments' do it 'updates all the gems' do run 'appraisal update' expect(content_of 'gemfiles/dummy.gemfile.lock').to include 'dummy (1.0.1)' expect(content_of 'gemfiles/dummy.gemfile.lock').to include 'dummy2 (1.0.1)' end end context 'with a list of gems' do it 'only updates specified gems' do run 'appraisal update dummy' expect(content_of 'gemfiles/dummy.gemfile.lock').to include 'dummy (1.0.1)' expect(content_of 'gemfiles/dummy.gemfile.lock').to include 'dummy2 (1.0.0)' end end end
Version data entries
10 entries across 8 versions & 2 rubygems