Sha256: 9b8d4023f6bc36ff470570ce80f8fa6fd918e467b5e50bdf8183805c3bb71c52
Contents?: true
Size: 675 Bytes
Versions: 215
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' describe Specinfra::Command::Redhat::V7::Service do let(:klass) { Specinfra::Command::Redhat::V7::Service } it { expect(klass.check_is_enabled('httpd')).to eq "systemctl --quiet is-enabled httpd" } it { expect(klass.check_is_enabled('httpd', 'multi-user.target')).to eq "systemctl --quiet is-enabled httpd" } it { expect(klass.check_is_enabled('httpd.service')).to eq "systemctl --quiet is-enabled httpd.service" } it { expect(klass.check_is_enabled('sshd.socket')).to eq "systemctl --quiet is-enabled sshd.socket" } it { expect(klass.check_is_enabled('logrotate.timer')).to eq "systemctl --quiet is-enabled logrotate.timer" } end
Version data entries
215 entries across 215 versions & 3 rubygems