Commit f2723bd4 authored by MARGERY David's avatar MARGERY David
Browse files

Explicitly test for handling of oar's default type

parent 58dcb4bc
......@@ -29,10 +29,15 @@ describe OAR::Resource do
expect(OAR::Resource.status.keys).to eq ["nodes"]
it "should return nodes when requesting default type" do
expect(OAR::Resource.status({types: ['default']}).keys).to eq ["nodes"]
it "should return status for all requested resource types" do
expect(OAR::Resource.status({types: ['node', 'disk']}).keys.sort).to eq ["nodes","disks"].sort
describe "status for nodes" do
it "should return the status of all the default resources" do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment