spec/arborist/observer/action_spec.rb in arborist-0.2.0.pre20170519125456 vs spec/arborist/observer/action_spec.rb in arborist-0.2.0
- old
+ new
@@ -45,9 +45,15 @@
it "requires a block" do
expect { described_class.new }.to raise_exception( ArgumentError, /requires a block/i )
end
+ it "continues through a misbehaving action" do
+ action = described_class.new { raise "boom" }
+ expect { action.handle_event(event) }.to_not raise_exception
+ end
+
+
context "without any other criteria" do
before( :each ) do
@call_count = 0
@last_call_arguments = nil