freerange / mocha

A mocking and stubbing library for Ruby
https://mocha.jamesmead.org
Other
1.23k stars 158 forks source link

Simplify backtrace-related assertions #680

Closed floehopper closed 1 week ago

floehopper commented 1 week ago

Previously we were generating the expected backtrace-related strings from scratch, but that was (a) quite complicated; and (b) suffered from Ruby version differences. Now we're using strings obtained directly from a Ruby backtrace which is a lot simpler and avoids the Ruby version differences.