summaryrefslogtreecommitdiff
path: root/spec/bin/storage_check_spec.rb
blob: 02f6fcb6e3ae33d80a34e2d3590849d3d30f9a89 (plain)
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