Fix a failing spec

This commit is contained in:
Nick Thomas 2017-04-25 17:13:44 +01:00
parent cb1207af36
commit 0e24b1280e

View file

@ -18,7 +18,7 @@ describe CacheMarkdownField do
end
extend ActiveModel::Callbacks
define_model_callbacks :save
define_model_callbacks :create, :update
include CacheMarkdownField
cache_markdown_field :foo
@ -56,7 +56,7 @@ describe CacheMarkdownField do
end
def save
run_callbacks :save do
run_callbacks :update do
changes_applied
end
end