summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-25 14:12:38 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-25 14:12:38 +0300
commit11c9b06f7cf412cc61883e61899525fca33c7f1b (patch)
treeb28fa2ab50dd534564a4dc57929edae4dfe520d0 /spec
parentdc917552641f88defa77f3ac7d68312ccccd21c4 (diff)
downloadgitlab-ce-11c9b06f7cf412cc61883e61899525fca33c7f1b.tar.gz
Fix key observer spec
Diffstat (limited to 'spec')
-rw-r--r--spec/observers/key_observer_spec.rb4
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