Commit 11c9b06f7cf412cc61883e61899525fca33c7f1b
1 parent
dc917552
Exists in
master
and in
4 other branches
Fix key observer spec
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
spec/observers/key_observer_spec.rb
| ... | ... | @@ -7,10 +7,10 @@ describe KeyObserver do |
| 7 | 7 | @observer = KeyObserver.instance |
| 8 | 8 | end |
| 9 | 9 | |
| 10 | - context :after_save do | |
| 10 | + context :after_create do | |
| 11 | 11 | it do |
| 12 | 12 | GitlabShellWorker.should_receive(:perform_async).with(:add_key, @key.shell_id, @key.key) |
| 13 | - @observer.after_save(@key) | |
| 13 | + @observer.after_create(@key) | |
| 14 | 14 | end |
| 15 | 15 | end |
| 16 | 16 | ... | ... |