spec/arborist/event/node_spec.rb in arborist-0.3.0 vs spec/arborist/event/node_spec.rb in arborist-0.4.0
- old
+ new
@@ -25,11 +25,13 @@
end
let( :event ) { described_class.new(node) }
it "serializes with useful metadata attached" do
- expect( event.to_h ).to include( :identifier, :parent, :nodetype )
+ expect( event.to_h ).to include( :identifier, :parent, :nodetype, :flapping )
expect( event.to_h[:nodetype] ).to eq( 'testnode' )
+ expect( event.to_h[:parent] ).to eq( 'bar' )
+ expect( event.to_h[:flapping] ).to eq( false )
end
it "matches match-anything subscriptions" do
sub = Arborist::Subscription.new {}