Sha256: 70fb3e0ae66108fd500806ce63f1ed4d453281f18987c64a46e1d0578c9d806e
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
# -*- coding: utf-8 -*- require 'spec_helper' describe DXRubyRP5::Sound, '音を表すクラス' do describe '.new' do shared_context '.new' do subject { described_class.new(fixture_path(filename)) } it '呼び出すことができる' do subject end end context 'WAVE形式のファイルの場合' do let(:filename) { 'sound.wav' } include_context '.new' end # context 'MIDI形式のファイルの場合' do # let(:filename) { 'bgm.mid' } # # include_context '.new' # end end describe '#play' do context 'WAVE形式のファイルの場合' do let(:path) { fixture_path('sound.wav') } let(:sound) { described_class.new(path) } subject { sound.play } it '呼び出すことができる' do subject end end # context 'MIDI形式のファイルの場合' do # let(:path) { fixture_path('bgm.mid') } # let(:sound) { DXRubySDL::Sound.new(path) } # # subject { sound.play } # # it '呼び出すことができる' do # subject # end # end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dxruby_rp5-0.0.3 | spec/lib/dxruby_rp5/sound_spec.rb |
dxruby_rp5-0.0.2 | spec/lib/dxruby_rp5/sound_spec.rb |
dxruby_rp5-0.0.1 | spec/lib/dxruby_rp5/sound_spec.rb |