Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/check-minio-update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
5 changes: 2 additions & 3 deletions spec/check-minio-update_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down