@x = do_something
Here's the commit which adds the feature to rspec - This was on May 25 2008. With this you can do
However, the latest gem version of rspec (1.1.11, October 2008) doesn't have this patch in it.
This ticket states that they yanked it out for maintenance reasons, and an alternative solution hasn't yet been provided.
Doesn't look like you can do it at this point. You'll have to hack the class manually using alias_method or somesuch.