Sha256: ff35a95361e5ad4648b517314ac23cd9a355c6b609f537570e50605a074e7a4b

Contents?: true

Size: 757 Bytes

Versions: 12

Compression:

Stored size: 757 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

class TestFlvEdit < Test::Unit::TestCase
  context "Options parsing" do
    setup do
      @options = FLV::Edit::Options.new([SHORT_FLV, "--Debug"])
    end
    
    should "detect files" do
      assert_equal [SHORT_FLV], @options.options[:files]
    end
    
  end
  
  context "Command line tool" do
    setup do
      File.delete(TEMP_FLV) if File.exist?(TEMP_FLV)
    end
    
    should "save" do
      assert !File.exist?(TEMP_FLV)
      runner = FLV::Edit::Runner.new([SHORT_FLV, "--Update", "--Save", TEMP_FLV])
      runner.options[:trace] = true
      runner.run
      assert File.exist?(TEMP_FLV)
    end
    
    teardown do
      File.delete(TEMP_FLV) if File.exist?(TEMP_FLV)
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
marcandre-flvedit-0.6.3 test/test_flv_edit.rb
marcandre-flvedit-0.6.4 test/test_flv_edit.rb
marcandre-flvedit-0.7.0 test/test_flv_edit.rb
marcandre-flvedit-0.7.1 test/test_flv_edit.rb
marcandre-flvedit-0.7.2 test/test_flv_edit.rb
marcandre-flvedit-0.7.3 test/test_flv_edit.rb
flvedit-0.7.4 test/test_flv_edit.rb
flvedit-0.7.2 test/test_flv_edit.rb
flvedit-0.7.1 test/test_flv_edit.rb
flvedit-0.6.4 test/test_flv_edit.rb
flvedit-0.7.0 test/test_flv_edit.rb
flvedit-0.6.3 test/test_flv_edit.rb