Skip to content

Commit 2095780

Browse files
committed
fix tests
1 parent d6036f0 commit 2095780

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/observers/key_observer_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'spec_helper'
22

33
describe KeyObserver do
4-
before do
4+
before do
55
@key = double('Key',
66
identifier: 'admin_654654',
77
key: '== a vaild ssh key',
@@ -15,7 +15,7 @@
1515
)
1616

1717
@observer = KeyObserver.instance
18-
@observer.stub(:git_host => @gitolite)
18+
@observer.stub(gitolite: @gitolite)
1919
end
2020

2121
context :after_save do
@@ -25,7 +25,7 @@
2525
end
2626
end
2727

28-
context :after_destroy do
28+
context :after_destroy do
2929
it do
3030
@gitolite.should_receive(:remove_key).with(@key.identifier, @key.projects)
3131
@observer.after_destroy(@key)

0 commit comments

Comments
 (0)