lib/remarkable/macros.rb in remarkable-3.0.9 vs lib/remarkable/macros.rb in remarkable-3.0.10
- old
+ new
@@ -14,11 +14,17 @@
else
super(method_id, *args, &block)
end
end
- def should_or_should_not_method_missing(should_or_should_not, method, calltrace, *args, &block) #:nodoc:
- it {
+ def should_or_should_not_method_missing(should_or_should_not, method, calltrace, *args, &block) #:nodoc:
+ description = if @_pending_group
+ get_description_from_matcher(should_or_should_not, method, *args, &block)
+ else
+ nil
+ end
+
+ example(description){
begin
send(should_or_should_not, send(method, *args, &block))
rescue Exception => e
trace = e.backtrace.to_a + calltrace.to_a
e.set_backtrace(trace)