mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Use more sensible label for non-labeled procs
This commit is contained in:
parent
ac85fac968
commit
268db53bf8
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ module Spectator::Expectations
|
|||
# The label is generated by calling to_s on the block.
|
||||
# The block is stored for later use.
|
||||
protected def initialize(@block : Proc(ReturnType), source_file, source_line)
|
||||
super(@block.to_s, source_file, source_line)
|
||||
super("<Proc>", source_file, source_line)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue