From d061d3868d0ba89121d325cc028ca08f8ad81580 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Tue, 4 Mar 2014 15:25:54 +0000 Subject: [PATCH] fix resource type test to work for any type --- spec/helpers/cib_object.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/helpers/cib_object.rb b/spec/helpers/cib_object.rb index 79c5e5f..a628d17 100644 --- a/spec/helpers/cib_object.rb +++ b/spec/helpers/cib_object.rb @@ -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