diff --git a/spec/configuration/rubyrvm_spec.rb b/spec/configuration/rubyrvm_spec.rb new file mode 100644 index 0000000..6f5a8a2 --- /dev/null +++ b/spec/configuration/rubyrvm_spec.rb @@ -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