Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. it 'calls remote service' do
  2. expect(RemoteServices).to receive(:request_recognize)
  3. .with('88')
  4. .and_return({result: 'ochenta y ocho'}.to_json)
  5.  
  6. result = VoiceService.recognize('88')
  7. expect(result).to eql('ochenta y ocho')
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement