You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then { expect(:foo).to eqish arg_that {|arg| arg.kind_of?(String) } }
Asking the block passed to arg_that its source will return a string of the entire line, not only what was passed to the block.
I imagine this is just a limitation of what #source_location tells you (e.g. no column information). Is there any other way to get at this? Would an AST approach perhaps work?
The text was updated successfully, but these errors were encountered:
Given a line like this:
Asking the block passed to
arg_that
itssource
will return a string of the entire line, not only what was passed to the block.I imagine this is just a limitation of what
#source_location
tells you (e.g. no column information). Is there any other way to get at this? Would an AST approach perhaps work?The text was updated successfully, but these errors were encountered: