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.91.0 spec/command/module/service/init_spec.rb
specinfra-2.90.1 spec/command/module/service/init_spec.rb
specinfra-2.90.0 spec/command/module/service/init_spec.rb
specinfra-2.89.0 spec/command/module/service/init_spec.rb
specinfra-2.88.2 spec/command/module/service/init_spec.rb
specinfra-2.88.1 spec/command/module/service/init_spec.rb
specinfra-2.88.0 spec/command/module/service/init_spec.rb
specinfra-2.87.2 spec/command/module/service/init_spec.rb
specinfra-2.87.1 spec/command/module/service/init_spec.rb
specinfra-2.87.0 spec/command/module/service/init_spec.rb
specinfra-2.86.0 spec/command/module/service/init_spec.rb
specinfra-2.85.1 spec/command/module/service/init_spec.rb
specinfra-2.85.0 spec/command/module/service/init_spec.rb
specinfra-2.84.1 spec/command/module/service/init_spec.rb
specinfra-2.84.0 spec/command/module/service/init_spec.rb
specinfra-2.83.4 spec/command/module/service/init_spec.rb
specinfra-2.83.3 spec/command/module/service/init_spec.rb
specinfra-2.83.2 spec/command/module/service/init_spec.rb
specinfra-2.83.1 spec/command/module/service/init_spec.rb
specinfra-2.83.0 spec/command/module/service/init_spec.rb