Sha256: 3b2cc3fa0a20c2eacbe48310a2542b10793dad4ea363c08595816134f6cec8b0

Contents?: true

Size: 1020 Bytes

Versions: 2

Compression:

Stored size: 1020 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Flvorflv do

  describe "binary version for 1.8f" do
    before do
      stub(Flvorflv).execute_binary { "FLVStreamer v1.8f\n(c) 2009 Andrej Stepanchuk, The Flvstreamer Team, license: GPL" }
      @version = Flvorflv.version
    end

    it "should call flvstreamer --help" do
      Flvorflv.should have_received.execute_binary("--help")
    end

    it "should return 1.8f" do
      @version.should == "1.8f"
    end
  end

  describe "basic use case do" do
    before do
      stub(Flvorflv).execute_binary

      Flvorflv.run(:rtmp => 'rtmp://hostname/something.flv',
               :start => 1,
               :stop => 2,
               :output => 'something.flv')
    end

    it "should call flvstream --output something.flv --rtmp rtmp://hostname/something.flv --start 1 --stop 2" do
      Flvorflv.should have_received.execute_binary("--output something.flv --rtmp rtmp://hostname/something.flv --start 1 --stop 2")
    end

  end

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
technicalpickles-flvorflv-0.1.0 spec/flvorflv_spec.rb
flvorflv-0.1.0 spec/flvorflv_spec.rb