How to test ActiveRecord callacks with RSpec?
Posted
by FoxDemon
on Stack Overflow
See other posts from Stack Overflow
or by FoxDemon
Published on 2010-04-20T08:01:11Z
Indexed on
2010/04/20
8:03 UTC
Read the original article
Hit count: 214
How to test the following example?
class Post < ActiveRecord::Base
belongs_to :discussion
def after_save # or after_create
discussion.touch
end
end
© Stack Overflow or respective owner