Sha256: 425d73c4f15c131e24479d170c0509bd44f52b154cf9ed688752d2f9518293ba
Contents?: true
Size: 724 Bytes
Versions: 8
Compression:
Stored size: 724 Bytes
Contents
#encoding: UTF-8 require 'spec_helper' describe Termit::SpeechSynthesizer do describe "call" do before do response = double 'fake_response', body: :binary_sound_file fetcher = double 'fake_fetcher', data: response handler = double 'fake_sound_handler', call: :nothing Termit::DataFetcher.stub(:new) { fetcher } Termit::SoundResponseHandler.stub(:new) { handler } end it "executes correct service objects" do Termit::SpeechSynthesizer.any_instance.stub(:check_sound_player) { nil } Termit::SoundResponseHandler.should_receive(:new).with(:binary_sound_file) Termit::SpeechSynthesizer.new(target_lang: :en, text: 'your mother', voice: true).call end end end
Version data entries
8 entries across 8 versions & 1 rubygems