Add missing proc call

This commit is contained in:
Michael Miller 2018-11-26 14:27:32 -07:00
parent 3207b7c8d2
commit e0f5862960
3 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ describe Spectator::ExampleHooks do
it "wraps a proc" do
called = false
hooks = new_hooks(around_each: ->(proc : ->) { called = true; nil })
hooks = new_hooks(around_each: ->(proc : ->) { called = true; proc.call })
wrapper = hooks.wrap_around_each { }
wrapper.call
called.should be_true