hi all,

i'm learning rspec and i can't figure out how to test if a callback is
executed in a model.

my model code is:

class User < ActiveRecord::Base
  before_save :encrypt_password

...

 def encrypt(password)
    self.class.encrypt(password, salt)
 end


thanks a lot,
cs.
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to