From 960931d222b8a654f46e3123b63c69e2013d411e Mon Sep 17 00:00:00 2001 From: Fernando Aleman Date: Sat, 13 Oct 2018 20:08:10 -0500 Subject: [PATCH] Update test package versions --- spec/unit/resources/asdf_package_spec.rb | 4 ++++ test/cookbooks/test/recipes/asdf_package.rb | 6 +++--- test/smoke/default/default_test.rb | 24 ++++++++++----------- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/spec/unit/resources/asdf_package_spec.rb b/spec/unit/resources/asdf_package_spec.rb index 6021fbb..2ca8f63 100644 --- a/spec/unit/resources/asdf_package_spec.rb +++ b/spec/unit/resources/asdf_package_spec.rb @@ -17,6 +17,10 @@ it 'installs ruby package' do expect(chef_run).to install_asdf_package('ruby') end + + it 'installs php package' do + expect(chef_run).to install_asdf_package('php') + end end end end diff --git a/test/cookbooks/test/recipes/asdf_package.rb b/test/cookbooks/test/recipes/asdf_package.rb index 2b01454..9abe037 100644 --- a/test/cookbooks/test/recipes/asdf_package.rb +++ b/test/cookbooks/test/recipes/asdf_package.rb @@ -4,21 +4,21 @@ asdf_package 'nodejs' do user 'vagrant' - version '8.7.0' + version '10.12.0' live_stream true action [:install, :global] end asdf_package 'ruby' do user 'vagrant' - version '2.4.2' + version '2.5.1' live_stream true action [:install, :global] end asdf_package 'php' do user 'vagrant' - version '5.6.32' + version '7.2.11' live_stream true action [:install, :global] end diff --git a/test/smoke/default/default_test.rb b/test/smoke/default/default_test.rb index 764dccc..5656ad0 100644 --- a/test/smoke/default/default_test.rb +++ b/test/smoke/default/default_test.rb @@ -72,36 +72,36 @@ control 'asdf_package' do title 'Installs, uninstalls and sets global asdf packages' - desc 'Installs nodejs 8.7.0' + desc 'Installs nodejs 10.12.0' describe bash('sudo -H -u vagrant bash -c "source /etc/profile.d/asdf.sh && asdf list nodejs"') do - its('stdout') { should include('8.7.0') } + its('stdout') { should include('10.12.0') } its('exit_status') { should eq 0 } end - desc 'Sets nodejs 8.7.0 to global' + desc 'Sets nodejs 10.12.0 to global' describe file('/home/vagrant/.tool-versions') do - its('content') { should include('nodejs 8.7.0') } + its('content') { should include('nodejs 10.12.0') } end - desc 'Installs ruby 2.4.2' + desc 'Installs ruby 2.5.1' describe bash('sudo -H -u vagrant bash -c "source /etc/profile.d/asdf.sh && asdf list ruby"') do - its('stdout') { should include('2.4.2') } + its('stdout') { should include('2.5.1') } its('exit_status') { should eq 0 } end - desc 'Sets ruby 2.4.2 to global' + desc 'Sets ruby 2.5.1 to global' describe file('/home/vagrant/.tool-versions') do - its('content') { should include('ruby 2.4.2') } + its('content') { should include('ruby 2.5.1') } end - desc 'Installs php 5.6.32' + desc 'Installs php 7.2.11' describe bash('sudo -H -u vagrant bash -c "source /etc/profile.d/asdf.sh && asdf list php"') do - its('stdout') { should include('5.6.32') } + its('stdout') { should include('7.2.11') } its('exit_status') { should eq 0 } end - desc 'Sets php 5.6.32 to global' + desc 'Sets php 7.2.11 to global' describe file('/home/vagrant/.tool-versions') do - its('content') { should include('php 5.6.32') } + its('content') { should include('php 7.2.11') } end end