diff --git a/spec/configuration/motd_spec.rb b/spec/configuration/motd_spec.rb new file mode 100644 index 0000000..67ca650 --- /dev/null +++ b/spec/configuration/motd_spec.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +require 'spec_helper' +set :os, family: 'redhat', release: '9', arch: 'x86_64' + +# Verificar que existe un script MOTD en el sistema +describe file('/usr/lib/redborder/bin/motd') do + it { should exist } + it { should be_executable } +end + +# Verificar la existencia del archivo MOTD en /etc/motd y su contenido +describe file('/etc/motd') do + it { should exist } + its('content') { should match(/.*redborder-repo.*/) } +end