replace rspec_reset with obscure reset line stolen from rspec-mocks

This commit is contained in:
Jonne Haß 2014-01-06 19:19:20 +01:00
parent 7bb055932a
commit a0bbd899de
2 changed files with 5 additions and 4 deletions

View file

@ -98,7 +98,8 @@ describe Workers::HttpMulti do
person.serialized_public_key = "-----BEGIN RSA PUBLIC KEY-----\nPsych!\n-----END RSA PUBLIC KEY-----"
person.save
Salmon::EncryptedSlap.rspec_reset
# Should be possible to drop when converting should_receive to expect(...).to
RSpec::Mocks.proxy_for(Salmon::EncryptedSlap).reset
Typhoeus.stub(person.receive_url).and_return @response
Typhoeus.stub(@people[1].receive_url).and_return @response