Sha256: 144dced2f42e54f8521a593dca6299c3e1b213dee6e5859aa9069717f5c117f8
Contents?: true
Size: 437 Bytes
Versions: 1
Compression:
Stored size: 437 Bytes
Contents
RSpec.shared_context 'fake_mpg321' do let(:fake_mpg321) { FakeMpg321.new } let(:last_command) { fake_mpg321.last_command } let(:example_file) { '/somepath/somefile.mp3' } before do allow(Open3).to receive(:popen2e).and_return(fake_mpg321.open2e_returns) allow_any_instance_of(Mpg321::ProcessWrapper).to receive(:async_handle_stdoe) do |instance| FakeReadThread.new(instance) { read_stdoe_line } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mpg321-1.0.0 | spec/support/context.rb |