Skip to content
Open
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
18 changes: 18 additions & 0 deletions spec/configuration/rubyrvm_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# frozen_string_literal: true

require 'spec_helper'
set :os, family: 'redhat', release: '9', arch: 'x86_64'

describe file('/usr/lib/redborder/bin/rb_rubywrapper.sh'), :rubywrapper do
it { should exist }
it { should be_file }
it { should be_executable }
end

describe 'Script behavior with -c argument', :rubywrapper do
it 'runs script with only -c argument' do
cmd = '/usr/lib/redborder/bin/rb_rubywrapper.sh -c'
result = command(cmd)
expect(result.exit_status).to eq(0)
end
end