diff --git a/bin/check-minio-update.rb b/bin/check-minio-update.rb index a87109d..f3cb9cf 100755 --- a/bin/check-minio-update.rb +++ b/bin/check-minio-update.rb @@ -73,7 +73,7 @@ def get_latest_version(checkurl, platform) end def get_local_version - stdout, stderr, status = Open3.capture3([{'PATH' => ENV['PATH']}, 'minio --version', :unsetenv_others => true]) + stdout, stderr, status = Open3.capture3({ 'PATH' => ENV['PATH'] }, 'minio --version', :unsetenv_others => true) raise IOError, "Unable to gather local minio version: #{stderr}" unless status.success? diff --git a/spec/check-minio-update_spec.rb b/spec/check-minio-update_spec.rb index 2b64be8..9071099 100644 --- a/spec/check-minio-update_spec.rb +++ b/spec/check-minio-update_spec.rb @@ -9,8 +9,7 @@ before do stub_checksum_request allow(check).to(receive(:output)) - allow(Open3).to(receive(:capture3).with(array_including('minio --version')) - .and_return([stdout, stderr, double(:success? => success)])) + allow(Open3).to(receive(:capture3).and_return([stdout, stderr, double(:success? => success)])) end let(:checksum_request) do @@ -81,7 +80,7 @@ end end - context 'with release url not found' do || + context 'with release url not found' do let(:response) { { body: '404 Not Found', status: 404 } } it 'should be unknown' do