Commit 11c9b06f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix key observer spec

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment