[Git][noosfero/noosfero][stable-1.10] html5-video: fix ffmpeg version

Rodrigo Souto gitlab at mg.gitlab.com
Tue Mar 27 11:46:43 BRT 2018


Rodrigo Souto pushed to branch stable-1.10 at Noosfero / noosfero


Commits:
e57d2093 by Rodrigo Souto at 2018-03-27T14:46:12Z
html5-video: fix ffmpeg version

- - - - -


1 changed file:

- plugins/html5_video/test/unit/ffmpeg_test.rb


Changes:

=====================================
plugins/html5_video/test/unit/ffmpeg_test.rb
=====================================
--- a/plugins/html5_video/test/unit/ffmpeg_test.rb
+++ b/plugins/html5_video/test/unit/ffmpeg_test.rb
@@ -111,7 +111,7 @@ class FfmpegTest < ActiveSupport::TestCase
 
   should 'read ffmpeg information and features' do
     response = ffmpeg.register_information
-    assert_match /^[0-9]\.[0-9]\.[0-9]$/, response[:version]
+    assert_match /^[0-9]*\.[0-9]*\.[0-9]*$/, response[:version]
     formatWebM = /^\{demux:false,description:WebM,mux:true\}$/
     assert_match formatWebM, h2s(response[:formats][:webm])
     codecVorbis = /^\{decode:true,description:Vorbis[^,]+,direct_rendering:false,draw_horiz_band:false,encode:true,type:audio,wf_trunc:false\}$/
@@ -249,7 +249,7 @@ class FfmpegTest < ActiveSupport::TestCase
   end
 
   should 'recognize ffmpeg version' do
-    assert_match /^[0-9]\.[0-9]\.[0-9]$/, ffmpeg.version
+    assert_match /^[0-9]*\.[0-9]*\.[0-9]*$/, ffmpeg.version
   end
 
   should 'list supported formats' do



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/e57d2093bf6f69be98344e0d1ce0dd95c2e7c6f1

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/e57d2093bf6f69be98344e0d1ce0dd95c2e7c6f1
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180327/0f600d15/attachment-0001.html>


More information about the Noosfero-dev mailing list