From 3e3a4c5eb3b504a45eefe384c1b6b65abd1bb0c1 Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Fri, 14 Mar 2014 19:20:30 +0000 Subject: [PATCH] make class test more stringent and informative --- spec/helpers/cib_object.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/helpers/cib_object.rb b/spec/helpers/cib_object.rb index a628d17..1c2d526 100644 --- a/spec/helpers/cib_object.rb +++ b/spec/helpers/cib_object.rb @@ -76,7 +76,7 @@ shared_examples "a CIB object" do include Chef::RSpec::Pacemaker::CIBObject def expect_to_match_fixture(obj) - expect(obj.is_a? pacemaker_object_class).to eq(true) + expect(obj.class).to eq(pacemaker_object_class) fields.each do |field| method = field.to_sym expect(obj.send(method)).to eq(fixture.send(method))