Sha256: 66147773f2c83dfa99b3c01060c63e722fa3bab33b64fe9e2ee66700daee5a7b
Contents?: true
Size: 1.3 KB
Versions: 2
Compression:
Stored size: 1.3 KB
Contents
require 'test_helper' class TestOptions < Minitest::Test def test_source options = Subshift::Options.new(['sample.srt', '3']) assert_equal 'sample.srt', options.source options = Subshift::Options.new(['sample', '3']) assert_equal 'sample.srt', options.source options = Subshift::Options.new(['sample.str', '3']) assert_equal 'sample.srt', options.source end def test_delay options = Subshift::Options.new(['sample.srt', '3']) assert_equal 3.0, options.delay options = Subshift::Options.new(['sample.srt', '3.5']) assert_equal 3.5, options.delay options = Subshift::Options.new(['sample.srt', '-3']) assert_equal (-3.0), options.delay options = Subshift::Options.new(['sample.srt', '-3.5']) assert_equal (-3.5), options.delay end def test_destination options = Subshift::Options.new(['sample.srt', '3']) assert_equal 'sample.srt', options.destination options = Subshift::Options.new(['sample.srt', '3', '-d', 'delayed.srt']) assert_equal 'delayed.srt', options.destination options = Subshift::Options.new(['sample.srt', '3', '-d', 'delayed']) assert_equal 'delayed.srt', options.destination options = Subshift::Options.new(['sample.srt', '3', '-d', 'delayed.str']) assert_equal 'delayed.srt', options.destination end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
subshift-0.0.2 | test/test_options.rb |
subshift-0.0.1.pre | test/test_options.rb |