diff options
author | Nick Thomas <nick@gitlab.com> | 2017-04-25 17:13:44 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-04-25 17:13:44 +0100 |
commit | 0e24b1280eca55bbe52931e530f3ce6ee38addc1 (patch) | |
tree | f37e19cd2aef7df366a823c2511c6c2270aee3d3 /spec/models/concerns/cache_markdown_field_spec.rb | |
parent | cb1207af36d7c67d6db8e2155ae65b87b009bb36 (diff) | |
download | gitlab-ce-0e24b1280eca55bbe52931e530f3ce6ee38addc1.tar.gz |
Fix a failing spec
Diffstat (limited to 'spec/models/concerns/cache_markdown_field_spec.rb')
-rw-r--r-- | spec/models/concerns/cache_markdown_field_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/cache_markdown_field_spec.rb b/spec/models/concerns/cache_markdown_field_spec.rb index de0069bdcac..4edafbc4e32 100644 --- a/spec/models/concerns/cache_markdown_field_spec.rb +++ b/spec/models/concerns/cache_markdown_field_spec.rb @@ -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 |