Every now and then you face code like this to test?
# this code is inside some nice file that is not "user.rb"
if !user.done_stuff? user.do_suff
if user.done_stuff? ... endend
Hey fellas!
Just check out this quick Ruby beauty today: multiple string replacements!
dynamic_string_that_may_have_multiple_typing_errors = “cheez burgs”dynamic_hash_containing_stuff_to_replace = {…
Wanna test some `after_transition` or `before_transition` code from your models on RSpec without super complicated mocks and stubs? Worry no more, here’s the real deal!
# User modelafter_transition on…