提交 11c9b06f 编写于 作者: D Dmitriy Zaporozhets

Fix key observer spec

上级 dc917552
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册