diff --git a/spec/configuration/cgroup_spec.rb b/spec/configuration/cgroup_spec.rb index 2cb96c0..5df5095 100644 --- a/spec/configuration/cgroup_spec.rb +++ b/spec/configuration/cgroup_spec.rb @@ -59,7 +59,8 @@ end hostname = command('hostname -s') -excluded_memory_services = command("knife node show #{hostname} -l -F json | jq '.default.redborder.excluded_memory_services | keys[]'").split("\n") +excluded_memory_services = command("knife node show #{hostname} -l -F json | " \ + "jq '.default.redborder.excluded_memory_services | keys[]'").split("\n") describe 'Check excluded memory service' do it 'Check chef-client is a excluded memory service' do @@ -73,7 +74,8 @@ end end -memory_services = command("knife node show #{hostname} -l -F json | jq '.default.redborder.memory_services | keys[]'").split("\n") +memory_services = command("knife node show #{hostname} -l -F json | " \ + "jq '.default.redborder.memory_services | keys[]'").split("\n") [memory_services, excluded_memory_services].map! { |array| Set.new(array) } non_excluded_serv = memory_services.difference(excluded_memory_services)