spec/dragonfly-ffmpeg/analyser_spec.rb in dragonfly-ffmpeg-0.1.5 vs spec/dragonfly-ffmpeg/analyser_spec.rb in dragonfly-ffmpeg-0.1.6

- old
+ new

@@ -29,11 +29,11 @@ it "should return the extension of the file" do @analyser.ext(@video).should == '.mov' end - it "should return the width" do + it "should return the width" do @analyser.v_width(@video).should == 1280 end it "should return the height" do @analyser.v_height(@video).should == 720 @@ -42,11 +42,11 @@ it "should return the frame rate" do @analyser.frame_rate(@video).should == 29.97 end it "should return the duration" do - @analyser.duration(@video).should == 0.6 + (@analyser.duration(@video)*10).to_i.should == 6 end it "should return the bit rate" do @analyser.bitrate(@video).should == 24328 end @@ -67,9 +67,13 @@ @analyser.colorspace(@video).should == "yuv420p" end it "should return the resolution" do @analyser.resolution(@video).should == "1280x720" + end + + it "should return the bit rate" do + @analyser.audio_bitrate(@video).should == 89 end it "should return the audio stream" do @analyser.audio_stream(@video).should == "aac, 48000 Hz, stereo, s16, 89 kb/s" end