RSpec controller specs gotcha...
Posted by joakimk, Sun Jun 29 14:31:00 UTC 2008
Another little tip. If you’re using an IP-based check for access (for example an before_filter in application.rb), the controller specs will fail (silently) to do anything for the ‘get’, ‘put’, ‘update’, ... unless you include ‘0.0.0.0’ as a valid ip.
