spec/service_spec.rb in linux_admin-0.2.1 vs spec/service_spec.rb in linux_admin-0.2.2
- old
+ new
@@ -35,12 +35,12 @@
end
describe "#enable" do
it "enables service" do
@service.should_receive(:run!).
- with(@service.cmd(:systemctl),
- :params => { nil => [ 'enable', 'foo.service']})
+ with(@service.cmd(:chkconfig),
+ :params => { nil => [ 'foo', 'on']})
@service.enable
end
it "returns self" do
@service.should_receive(:run!) # stub out cmd invocation
@@ -49,11 +49,11 @@
end
describe "#disable" do
it "disable service" do
@service.should_receive(:run!).
- with(@service.cmd(:systemctl),
- :params => { nil => [ 'disable', 'foo.service']})
+ with(@service.cmd(:chkconfig),
+ :params => { nil => [ 'foo', 'off']})
@service.disable
end
it "returns self" do
@service.should_receive(:run!)