diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-03 12:37:12 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-03 12:37:12 +0200 |
commit | 2095780f24db7c75f5a004654ae2e4052fe16bdd (patch) | |
tree | ea345b76ca2fbc36bd8099ecb69dc397dff113e1 /spec/observers | |
parent | d6036f08aa94fa5a45b569fc8b9e80f064496bcf (diff) | |
download | gitlab-ce-2095780f24db7c75f5a004654ae2e4052fe16bdd.tar.gz |
fix tests
Diffstat (limited to 'spec/observers')
-rw-r--r-- | spec/observers/key_observer_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/observers/key_observer_spec.rb b/spec/observers/key_observer_spec.rb index 7f2a76a320c..ae7b0f73e57 100644 --- a/spec/observers/key_observer_spec.rb +++ b/spec/observers/key_observer_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe KeyObserver do - before do + before do @key = double('Key', identifier: 'admin_654654', key: '== a vaild ssh key', @@ -15,7 +15,7 @@ describe KeyObserver do ) @observer = KeyObserver.instance - @observer.stub(:git_host => @gitolite) + @observer.stub(gitolite: @gitolite) end context :after_save do @@ -25,7 +25,7 @@ describe KeyObserver do end end - context :after_destroy do + context :after_destroy do it do @gitolite.should_receive(:remove_key).with(@key.identifier, @key.projects) @observer.after_destroy(@key) |