Fix key observer spec

This commit is contained in:
Dmitriy Zaporozhets 2013-06-25 14:12:38 +03:00
parent dc91755264
commit 11c9b06f7c

View file

@ -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