views:

44

answers:

1

I'm trying to unit test an observer in rails but none of its callbacks are being invoked. I'm sure I have something configured incorrectly but just to be sure I was wondering if this may be a Rails limitation during unit testing.

I've looked at the docs and they don't mention anything.

A: 

Yes. Callbacks defined in observers work perfectly in unit testing. It must be something wrong with your config files. Why don't you post your config/environment.rb file so we can check?

Erik Escobedo