fixing tests after refactoring

This commit is contained in:
Dmitriy Zaporozhets 2013-02-11 20:28:27 +02:00
parent 2a1fac9e4f
commit ab0cfc0036
5 changed files with 7 additions and 12 deletions

View file

@ -14,14 +14,14 @@ describe KeyObserver do
context :after_save do
it do
GitoliteWorker.should_receive(:perform_async).with(:add_key, @key.shell_id, @key.key)
GitlabShellWorker.should_receive(:perform_async).with(:add_key, @key.shell_id, @key.key)
@observer.after_save(@key)
end
end
context :after_destroy do
it do
GitoliteWorker.should_receive(:perform_async).with(:remove_key, @key.shell_id, @key.key)
GitlabShellWorker.should_receive(:perform_async).with(:remove_key, @key.shell_id, @key.key)
@observer.after_destroy(@key)
end
end