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.76.5 spec/command/module/service/init_spec.rb
specinfra-2.76.4 spec/command/module/service/init_spec.rb
specinfra-2.76.3 spec/command/module/service/init_spec.rb
specinfra-2.76.2 spec/command/module/service/init_spec.rb
specinfra-2.76.1 spec/command/module/service/init_spec.rb
specinfra-2.76.0 spec/command/module/service/init_spec.rb
specinfra-2.75.1 spec/command/module/service/init_spec.rb
specinfra-rb19-2.44.7 spec/command/module/service/init_spec.rb
specinfra-2.75.0 spec/command/module/service/init_spec.rb
specinfra-2.74.0 spec/command/module/service/init_spec.rb
specinfra-2.73.4 spec/command/module/service/init_spec.rb
specinfra-2.73.3 spec/command/module/service/init_spec.rb
specinfra-2.73.2 spec/command/module/service/init_spec.rb
specinfra-2.73.1 spec/command/module/service/init_spec.rb
specinfra-2.73.0 spec/command/module/service/init_spec.rb
specinfra-2.72.1 spec/command/module/service/init_spec.rb
specinfra-2.72.0 spec/command/module/service/init_spec.rb
specinfra-2.71.3 spec/command/module/service/init_spec.rb
specinfra-2.71.2 spec/command/module/service/init_spec.rb
specinfra-2.71.1 spec/command/module/service/init_spec.rb