Commit 51b1859e49ae7eddfb9eafc5ad3531cb2772bf38
1 parent
6347e9a6
Exists in
master
and in
4 other branches
fix key observer test
Showing
1 changed file
with
1 additions
and
6 deletions
Show diff stats
spec/observers/key_observer_spec.rb
| ... | ... | @@ -2,12 +2,7 @@ require 'spec_helper' |
| 2 | 2 | |
| 3 | 3 | describe KeyObserver do |
| 4 | 4 | before do |
| 5 | - @key = double('Key', | |
| 6 | - shell_id: 'key-32', | |
| 7 | - key: '== a vaild ssh key', | |
| 8 | - projects: [], | |
| 9 | - is_deploy_key: false | |
| 10 | - ) | |
| 5 | + @key = create(:personal_key) | |
| 11 | 6 | |
| 12 | 7 | @observer = KeyObserver.instance |
| 13 | 8 | end | ... | ... |