Sha256: f1bf5e3599d5d712d440070cdf4845f5c7b3955dc73a791428e4d400d99400e2

Contents?: true

Size: 958 Bytes

Versions: 236

Compression:

Stored size: 958 Bytes

Contents

require 'spec_helper'

describe Specinfra::Command::Module::Service::Init do
  class Specinfra::Command::Module::Service::Init::Test < Specinfra::Command::Base
    extend Specinfra::Command::Module::Service::Init
  end
  let(:klass) { Specinfra::Command::Module::Service::Init::Test }
  it { expect(klass.check_is_enabled_under_init('httpd')).to eq "chkconfig --list httpd | grep 3:on" }
  it { expect(klass.check_is_running_under_init('httpd')).to eq 'service httpd status' }
  it { expect(klass.enable_under_init('httpd')).to  eq 'chkconfig httpd on' }
  it { expect(klass.disable_under_init('httpd')).to eq 'chkconfig httpd off' }
  it { expect(klass.start_under_init('httpd')).to   eq 'service httpd start' }
  it { expect(klass.stop_under_init('httpd')).to    eq 'service httpd stop' }
  it { expect(klass.restart_under_init('httpd')).to eq 'service httpd restart' }
  it { expect(klass.reload_under_init('httpd')).to  eq 'service httpd reload' }
end


Version data entries

236 entries across 236 versions & 3 rubygems

Version Path
specinfra-2.71.0 spec/command/module/service/init_spec.rb
specinfra-2.70.2 spec/command/module/service/init_spec.rb
specinfra-2.70.1 spec/command/module/service/init_spec.rb
specinfra-2.70.0 spec/command/module/service/init_spec.rb
specinfra-2.69.0 spec/command/module/service/init_spec.rb
specinfra-2.68.2 spec/command/module/service/init_spec.rb
specinfra-2.68.1 spec/command/module/service/init_spec.rb
specinfra-2.68.0 spec/command/module/service/init_spec.rb
specinfra-2.67.10 spec/command/module/service/init_spec.rb
specinfra-2.67.9 spec/command/module/service/init_spec.rb
specinfra-2.67.8 spec/command/module/service/init_spec.rb
specinfra-2.67.7 spec/command/module/service/init_spec.rb
specinfra-2.67.6 spec/command/module/service/init_spec.rb
specinfra-2.67.5 spec/command/module/service/init_spec.rb
specinfra-2.67.3 spec/command/module/service/init_spec.rb
specinfra-2.67.2 spec/command/module/service/init_spec.rb
specinfra-2.67.1 spec/command/module/service/init_spec.rb
specinfra-2.67.0 spec/command/module/service/init_spec.rb
specinfra-2.66.9 spec/command/module/service/init_spec.rb
specinfra-2.66.8 spec/command/module/service/init_spec.rb