Sha256: 07c4e688ecf217264d4c4ea9995d662a98bd26789bf93723efaa5672a526958c
Contents?: true
Size: 808 Bytes
Versions: 4
Compression:
Stored size: 808 Bytes
Contents
require 'spec_helper' describe Somadic::Channel::Soma do it 'can play Soma' do if pidlist.empty? soma = Somadic::Channel::Soma.new({ channel: 'secretagent130' }) soma.start sleep secs_to_wait # let it spin up expect(pidlist.count).to be > 0 soma.stop sleep secs_to_wait / 2 # let it die expect(pidlist.empty?).to be true else puts "\n!!! mplayer is already running, skipping Soma test." end end it 'blows up with a bad channel' it 'can get a channel list' do soma = Somadic::Channel::Soma.new({ channel: 'secretagent130' }) expect(soma.channels.count).to be > 0 expect(soma.channels.include?({ id: 0, name: 'secretagent' })).to be true expect(soma.channels.include?({ id: 0, name: 'groovesalad' })).to be true end end
Version data entries
4 entries across 4 versions & 1 rubygems