Skip to content

Commit

Permalink
Merge pull request #61 from redBorder/mongodb_tests
Browse files Browse the repository at this point in the history
Added if service_status disabled
  • Loading branch information
manegron authored Dec 18, 2023
2 parents 564302a + 75eb617 commit 1af4149
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/services/mongodb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,16 @@
end
end
end

if service_status == 'disabled'
describe "Checking #{service_status} service for #{service}..." do
describe service(service) do
it { should_not be_enabled }
it { should_not be_running }
end

describe port(port) do
it { should_not be_listening }
end
end
end

0 comments on commit 1af4149

Please sign in to comment.