very thank you. i know how to test observer now. but i can't understand why observer can't run in spec?
On Sat, Jan 1, 2011 at 1:49 AM, djangst <[email protected]> wrote: > Does this help? > > http://stackoverflow.com/questions/33048/how-would-you-test-observers-with-rspec-in-a-ruby-on-rails-application > > On Dec 31, 5:06 am, soldier <[email protected]> wrote: >> but when i use rspec , the observer can't run in, it's never step in. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

