Sha256: dcb77dda9042d00638711bdc8d427cc9b5e15b51c5e0819609ead83f5ecead51

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

require 'shoes/spec_helper'

describe Shoes::Sound do
  let(:parent) { double("parent") }
  let(:filepath) { "../../samples/sounds/61847__simon-rue__boink-v3.wav" }
  subject { Shoes::Sound.new(parent, filepath) }

  its(:filepath) { should eq(filepath) }
  its(:parent) { should be(parent) }

  it "delegates play to gui" do
    subject.gui.should_receive(:play)
    subject.play
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.pre1 spec/shoes/sound_spec.rb