Sha256: b77ca901dd007628d045fce4c4b2a373ee1da5fd853df7e4f5e6f2aa85346a41
Contents?: true
Size: 513 Bytes
Versions: 8
Compression:
Stored size: 513 Bytes
Contents
#encoding: UTF-8 require 'spec_helper' describe Termit::SoundResponseHandler do describe "call method" do subject { Termit::SoundResponseHandler.new('tralala') } let(:location) { "#{File.expand_path('~')}/.termit" } it "saves and plays the sound file the sound file" do File.should_receive(:open).with("#{location}/sound_response.mp3", "wb") Object.any_instance.should_receive(:system).with("mpg123 -q #{location}/sound_response.mp3 &> /dev/null") subject.call end end end
Version data entries
8 entries across 8 versions & 1 rubygems