fix resource type test to work for any type

This commit is contained in:
Adam Spiers 2014-03-04 15:25:54 +00:00
parent 06ec8b8d6e
commit d061d3868d

View File

@ -94,11 +94,11 @@ shared_examples "a CIB object" do
expect_to_match_fixture(obj)
end
it "should barf if the loaded definition's type is not colocation" do
stub_shellout("clone foo blah blah")
it "should barf if the loaded definition's type is not right" do
stub_shellout("sometype foo blah blah")
expect { fixture.load_definition }.to \
raise_error(Pacemaker::CIBObject::TypeMismatch,
"Expected #{object_type} type but loaded definition was type clone")
"Expected #{object_type} type but loaded definition was type sometype")
end
end