BigW Consortium Gitlab

storage_check_spec.rb 407 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
require 'spec_helper'

describe 'bin/storage_check' do
  it 'is executable' do
    command = %w[bin/storage_check -t unix://the/path/to/a/unix-socket.sock -i 10 -d]
    expected_output = 'Checking unix://the/path/to/a/unix-socket.sock every 10 seconds'

    output, status = Gitlab::Popen.popen(command, Rails.root.to_s)

    expect(status).to eq(0)
    expect(output).to include(expected_output)
  end
end