File: service_spec.rb

package info (click to toggle)
ruby-specinfra 2.94.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,464 kB
  • sloc: ruby: 10,562; makefile: 4
file content (24 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'spec_helper'

property[:os] = nil
set :os, :family => 'guix'

describe get_command(:enable_service, 'nginx') do
  it { should eq 'herd enable nginx' }
end

describe get_command(:disable_service, 'nginx') do
  it { should eq 'herd disable nginx' }
end

describe get_command(:start_service, 'nginx') do
  it { should eq 'herd start nginx' }
end

describe get_command(:stop_service, 'nginx') do
  it { should eq 'herd stop nginx' }
end

describe get_command(:restart_service, 'nginx') do
  it { should eq 'herd restart nginx' }
end