Sha256: f793cddfb3e3f82d4a922d8e5082b2e59d47e85cb6eb572ec83f55388c7fc889
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
require 'bundler/setup' require 'hallon/openal' describe Hallon::OpenAL do let(:klass) { described_class } let(:format) { Hash.new } subject { klass.new(format) } describe "#initialize" do it "should raise an error if not given a format" do expect { klass.new {} }.to raise_error(ArgumentError) end end describe "#start" do it "should not raise an error" do expect { subject.start }.to_not raise_error end end describe "#stop" do it "should not raise an error" do expect { subject.stop }.to_not raise_error end end describe "#pause" do it "should not raise an error" do expect { subject.pause }.to_not raise_error end end describe "#drops" do it "should always return zero" do subject.drops.should be_zero end end describe "#format" do it "should be settable and gettable" do format = { channels: 1, rate: 44100 } subject.format.should == {} subject.format = format subject.format.should eq format end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hallon-openal-0.0.2 | spec/hallon_openal_spec.rb |