How to compare Rails ''executables" before and after refactor?
Posted
by
Kyle Heironimus
on Stack Overflow
See other posts from Stack Overflow
or by Kyle Heironimus
Published on 2012-09-01T11:57:18Z
Indexed on
2012/09/23
3:38 UTC
Read the original article
Hit count: 120
In C, I could generate an executable, do an extensive rename only refactor, then compare executables again to confirm that the executable did not change. This was very handy to ensure that the refactor did not break anything.
Has anyone done anything similar with Ruby, particularly a Rails app? Strategies and methods would be appreciated. Ideally, I could run a script that output a single file of some sort that was purely bytecode and was not changed by naming changes. I'm guessing JRuby or Rubinus would be helpful here.
© Stack Overflow or respective owner