spec/unit/relationship_spec.rb in puppet-2.6.4 vs spec/unit/relationship_spec.rb in puppet-2.6.5

- old
+ new

@@ -153,13 +153,11 @@ it "should match events with the same name" do @edge.should be_match(:random) end end -describe Puppet::Relationship, "when converting to pson" do - confine "Missing 'pson' library" => Puppet.features.pson? - +describe Puppet::Relationship, "when converting to pson", :if => Puppet.features.pson? do before do @edge = Puppet::Relationship.new(:a, :b, :event => :random, :callback => :whatever) end it "should store the stringified source as the source in the data" do @@ -188,12 +186,10 @@ @edge.callback = nil PSON.parse(@edge.to_pson)["callback"].should be_nil end end -describe Puppet::Relationship, "when converting from pson" do - confine "Missing 'pson' library" => Puppet.features.pson? - +describe Puppet::Relationship, "when converting from pson", :if => Puppet.features.pson? do before do @event = "random" @callback = "whatever" @data = { "source" => "mysource",