Last active
August 26, 2016 09:58
-
-
Save elmendalerenda/0c8b7e42f1f1970be41abfd87dbbe11d to your computer and use it in GitHub Desktop.
sample for medium article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it 'calls remote service' do | |
expect(RemoteServices).to receive(:request_recognize) | |
.with('88.wav') | |
.and_return({result: 'ochenta y ocho'}.to_json) | |
result = VoiceService.recognize('88.wav') | |
expect(result).to eql('ochenta y ocho') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment