diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-25 14:12:38 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-25 14:12:38 +0300 |
commit | 11c9b06f7cf412cc61883e61899525fca33c7f1b (patch) | |
tree | b28fa2ab50dd534564a4dc57929edae4dfe520d0 /spec | |
parent | dc917552641f88defa77f3ac7d68312ccccd21c4 (diff) | |
download | gitlab-ce-11c9b06f7cf412cc61883e61899525fca33c7f1b.tar.gz |
Fix key observer spec
Diffstat (limited to 'spec')
-rw-r--r-- | spec/observers/key_observer_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/observers/key_observer_spec.rb b/spec/observers/key_observer_spec.rb index 452844cbedd..b304bf1fcb7 100644 --- a/spec/observers/key_observer_spec.rb +++ b/spec/observers/key_observer_spec.rb @@ -7,10 +7,10 @@ describe KeyObserver do @observer = KeyObserver.instance end - context :after_save do + context :after_create do it do GitlabShellWorker.should_receive(:perform_async).with(:add_key, @key.shell_id, @key.key) - @observer.after_save(@key) + @observer.after_create(@key) end end |