Sha256: 91b8bfe28ff2ee14189a04683f3cc3e8fa85f5868c26a4548d077860b7cbb806
Contents?: true
Size: 801 Bytes
Versions: 2
Compression:
Stored size: 801 Bytes
Contents
require 'spec_helper' describe EffectSlot do before(:each) { GC.start } describe 'by default' do its(:auto?) { should be_true } its(:effect) { should be_nil } its(:gain) { should eq 1.0 } end it_validates 'the boolean attribute', :auto it_validates 'the float attribute', :gain, "[0, 1]" it_defines 'boolean reader aliases', [:auto] it 'can initialize with an effect' do reverb = Reverb.new effect_slot = EffectSlot.new(reverb) effect_slot.effect.should be reverb end it 'can set an effect' do effect_slot = subject reverb = Reverb.new effect_slot.effect = reverb effect_slot.effect.should be reverb end it 'can be fed by multiple sources' do 23.times do source = Source.new source.feed(subject, 0) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
seal-0.1.2 | spec/seal/effect_slot_spec.rb |
seal-0.1.1 | spec/seal/effect_slot_spec.rb |