[rspec-users] Specify attr_protected

Tom Stuart tom at experthuman.com
Thu May 31 11:55:03 EDT 2007

On 31 May 2007, at 16:45, Jed Hurt wrote:
> Great. I like the 'send' syntax; its much cleaner than eval.
>       @order.send(attribute).should_not == 'hax0rz'

Not to be pedantic, but I'd prefer

   @order[attribute].should_not == 'hax0rz'

which of course does the same thing, but is a little bit more...  
semantically pleasing?


More information about the rspec-users mailing list